2009年4月28日星期二

Re: [fw-db] Models in Modular Application

Hi,

I noticed that new auto loading activates only when you add module bootstrap
files.

Empty extended class seems to be enough to get autoloading going
(application/modules/mymodule/Bootstrap.php).

class Mymodule_Bootstrap extends Zend_Application_Module_Bootstrap
{

}

br, Marko


iceangel89 wrote:
>
> how/do i need to include the models folder in my include path to use
> models?
>
> i thought ZendFramework is MVC so how come models are not
> included/detected automatically?
>
> i am using ZF1.8 and my directory structure is
>
> /application
> /modules
> /mod1
> /models
> /views
> /controllers
> /mod2
> /models
> /views
> /controllers
> /mod3
> /models
> /views
> /controllers
>
> i am using application.ini also . generated by Zend_Tool
>

--
View this message in context: http://www.nabble.com/Models-in-Modular-Application-tp23289770p23291458.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: