How about those who do not use ini file as there config file? and yet we
can't add a whole bunch of code for every module. What about when someone
adds a new module he needs to start adding code blocks into X amount of
places to configure that right. That's not the approach i am searching for.
There should be a better more modulere and convinent solution.

Vince.

On Thu, May 7, 2009 at 2:21 PM, Sergio Rinaudo <[email protected]>wrote:

>  Maybe this is the solution.
> On your application.ini add
>
>   {modulename}.resources.frontController.controllerDirectory =
> APPLICATION_PATH "/controllers"
>   {modulename}.resources.frontController.moduleDirectory = APPLICATION_PATH
> "/modules"
>   {modulename}n.resources.frontController.moduleControllerDirectoryName =
> "controllers"
>   {modulename}.resources.frontController.defaultControllerName = "index"
>   {modulename}.resources.frontController.defaultAction = "index"
>   {modulename}.resources.frontController.defaultModule = "default"
>   {modulename}.resources.frontController.baseUrl = "/"
>   {modulename}.resources.layout.layout = "{layoutname}"
>
>
> Sergio Rinaudo
>
>
>
> ------------------------------
> Date: Thu, 7 May 2009 14:15:28 +0300
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> Subject: Re: [fw-general] Modules using zend_application
>
> I did the same thing and have the same problem.
>
> On Thu, May 7, 2009 at 2:11 PM, Erwin Toze <[email protected]> wrote:
>
> 2009/5/7 Karl <[email protected]>
>
>  Hi,
>
> I am still trying to figure out how to have different layouts per module
> without overriding my main applications layout, so I unfortunately don't
> have examples for you.
>
>
> I'm also struggling with module specific layout, for instance, if i have:
>
> two layout files:
> /application/layouts/default. phtml
> /application/layouts/admin.phtml
>
> in /application/Bootstrap.php:
> class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
>     protected function _initView()
>     {
>         Zend_Layout::startMVC(array('layoutPath' =>
> '../application/layouts'));
>     }
> }
>
>
> in /application/modules/default/Bootstrap.php:
> class Default_Bootstrap extends Zend_Application_Module_Bootstrap {
>     protected function _initView()
>     {
>         Zend_Layout::startMVC(array('layout' => 'default'));
>     }
> }
>
>
> in /application/modules/admin/Bootstrap.php:
> class Admin_Bootstrap extends Zend_Application_Module_Bootstrap {
>     protected function _initView()
>     {
>         Zend_Layout::startMVC(array('layout' => 'admin'));
>     }
> }
>
> so i expected to have different layout when i go to
> http://localhost/     //default layout
> and
> http://localhost/admin/    //admin layout
>
> but wherever i go i always have the admin layout!!
>
> does someone have a solution? did i do something wrong?
>
> Thanks
>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
> -- http://www.vadimg.co.il/
>
>
>
>
> ------------------------------
> Quali sono le parole più cliccate? Scopri la 
> top!<http://livesearch.it.msn.com/>
> ------------------------------
> Cerchi i tuoi spazi? Hotmail va oltre i 5GB. Scopri 
> perché!<http://messenger.it/hotmail.aspx>
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/

Reply via email to