[email protected] wrote
> I have a project structure created using zend tool. It has some modules in
> it. Each module has its own controller, model and view directories. I want
> to autoload classes in model directories without any prefixes infront of
> it. It must be invoke like this
> 
> $obj  = new Users();
> 
> After reading the posts I understood that it is not possible to  load
> modules models like this. But still I am in confusion, Is my understanding
> is correct or not? Please help me friends ...
> Thanks in advance .
> Kiren.S

Just add your models into include_path in your public/index.php file, 
something like that:
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)).";".realpath(APPLICATION_PATH . '/models'));



-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Models-in-modules-tp4657312p4657314.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to