Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2008, 01:59 PM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default error for module models

hello
i have a dir structure like
Code:
/app
	/default
		/controllers
		/models
		/views
	/admin
		/controllers
		/models
		/views
if i access localhost/admin/ it works ok giving me the admin page

if i access something like localhost/admin/news i get a model error .. my admin/models/ files are not included

i've solved this by using in my controllers
PHP Code:
    public function init() {
          
set_include_pathget_include_path() . PATH_SEPARATOR BASE_DIR '/application/admin/models');
    } 
but it has to be a better way ... if i'm in the 'admin' module i really expect the framework to look in the admin/models for my models..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:23 AM.