2009年4月28日星期二

Re: [fw-db] Models in Modular Application

The class is located in 'modules/admin/Bootstrap.php'?

Cristian Bichis schrieb:
> Sorry, modules bootstrapps still doesn't load...
>
> I have too:
>
> resources.modules =
>
> on application.ini, loaded by Zend_App...
>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>

--
Sebastian Krebs
http://www.kingcrunch2000.de
PGP public key for encryption
http://kingcrunch2000.de/public/0x44291B2B-pub.asc

没有评论: