2009年4月29日星期三

Re: [fw-db] Models in Modular Application

Yeap...

File is not loaded at all...

Cristian
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      
   


--  Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com

没有评论: