Hi Kendall,
The models will be shared across modules with no extra work; just put them
in the models directory.
I put my view helpers (and other code) in directories like
/library/MyApp/View/Helper/DateFormat.php
and then add the helper path
$prefix = 'MyApp_View_Helper';
$dir = dirname(__FILE__) . '/../../View/Helper';
$view->addHelperPath($dir, $prefix);
/library/ is already in my include_path
Cheers,
Mark
Kendall Bennett-2 wrote:
>
> 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
>
>
--
View this message in context:
http://www.nabble.com/Multi-module-layout--tp23360417p23364461.html
Sent from the Zend Framework mailing list archive at Nabble.com.