2009年4月28日星期二

Re: [fw-db] Models in Modular Application

Let's see,

I have this in my config.ini (loaded by Zend_Application)

# Modules resource
resources.modules =

br, Marko


Cristian Bichis-3 wrote:
>
> Hi,
>
> Did you made any other setting to get modules bootstrapps called ?
>
> class Admin_Bootstrap extends Zend_Application_Module_Bootstrap
> {
> public function __construct($application)
> {
> die('zzz');
> }
> }
>
> doesn't load at all... And Bootstrap.php is properly located...
>
> Previously (with older Zend_App version) i had this working fine...
>
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>
>
>> 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-tp23289770p23291570.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: