I'm not sure if there's a way to setup an admin module directly thru application.ini I was trying o make my bootstrap an *almost* complete stub taking advantage of application.ini there's a lot to be said but anyway that's off topic in my boot strap I just added
$front->addControllerDirectory(APPLICATION_PATH . '/admin/controllers', 'admin'); $front->addModuleDirectory(APPLICATION_PATH . '/admin'); And in my autoloader I added $loader = new Zend_Application_Module_Autoloader(array( 'namespace' => 'Admin', 'basePath' => APPLICATION_PATH . '/admin') ); >From there you can access forms and modules like so, $user = new Admin_Model_Users() $form = new Admin_Form_UserForm() $user = new Defulat_Model_User() Tom Shaw php.co...@tx.rr.com From: Kendall Bennett [mailto:kenda...@amainhobbies.com] Sent: Sunday, May 03, 2009 5:06 PM To: Zend Framework General Subject: [fw-general] Multi module layout? I am still struggling to figure out how to correctly configure everything in ZF 1.8.0 to set up a structure similar to the following: /application /configs /controllers /layouts /models /views /modules /admin /controllers /layouts /views /library Ie: I want to have an admin application module that will have all it's own controllers, layouts and views, but I want it to share the models and even the view helpers across the admin and front end applications. I suppose I could configure the helpers so that they come out of the library directory, and I could put the models into the library directory also. But I am still stuck on how to configure the autoloader and the router so that it will correctly handle these two different applications. Or should I be setting up an entirely separate /public/admin/index.php file for the admin side? And have it bootstrap the admin side separately, but set up name spaces to get to the shared models and view helpers? How exactly would I set up the name space for the view helpers so that if I made a view helper for $this->dateFormat(), that it would load MyApp_View_Helper_DateFormat rather than Zend_View_Helpder_DateFormat? Regards, Kendall Bennett, CEO A Main Hobbies 424 Otterson Drive, Suite 160 Chico, CA 95928 1-800-705-2215 (Toll-Free) 1-530-894-0797 (Int'l & Local) 1-530-894-9049 (Fax) http://www.amainhobbies.com