it was already like you describe. I've just noticed the possibility to use these view helper in the bootstrap and I tryed. Thank you Bye
Sergio Rinaudo Date: Mon, 1 Jun 2009 12:40:25 +0100 From: [email protected] To: [email protected] Subject: Re: [fw-general] Bootstrap and view helpers 2009/5/27 Sergio Rinaudo <[email protected]> in my protected function _initViewHelpers() for my default module I set $view->headTitle()->setSeparator(' - '); $view->headTitle('My Website Title'); Then, in the admin module bootstrap, same method name, I set $view->headTitle('Control Panel'); I would expect that my default module's title were 'My Website Title' and my admin module's title Control Panel. Instead of that, I get 'Control Panel - My Website Title' on each modules. All bootstraps run on each request, so your application is running both _initViewHelpers() methods. You could either move this logic to a controller plugin, where you could check the current module and set the headTitle accordingly, or if your admin area has a different layout you could set the default titles in your layouts. -- Tim Fountain http://tfountain.co.uk/ _________________________________________________________________ Resta in contatto con gli amici, comunica con Messenger! http://messenger.it/cominciaAcomunicare.aspx
