2009年4月28日星期二

Re: [fw-db] Models in Modular Application

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      
   


没有评论: