Hi, 
I don't know how to do it from the bootstrap or from application.ini, 
but you can call those lines of code to disable layout from your custom 
controller action class.

The inconvenient of this solution is that all your controllers must exending 
it...


Sergio Rinaudo



> Date: Sat, 23 May 2009 19:56:42 +0200
> From: [email protected]
> To: [email protected]
> Subject: [fw-general] Disable view and layout for Console use
> 
> Hi,
> 
> I want to disable the view and layout when my application is runing in 
> console environnement.
> I can disable them from the Action_Controller :
> $this->_helper->layout->disableLayout();
> $this->_helper->viewRenderer->setNoRender();
> 
> But how can I disable it directly from the bootstrap (for every action...)
> 
> In my application.ini, I have  :
> [production]
> resources.layout.layoutPath = APPLICATION_PATH "/default/views/layouts"
> resources.layout.layout = "layout"
> resources.view[] =
> resources.view.encoding = "UTF-8"
> 
> [console : production]
> ....
> 
> How can I remove resources.layout.* and resources.view.* entries from 
> the [console : production] ? so layout and view resources won't init in 
> the bootstrap.
> 
> Thank you for pointing the right way to handle these !
> 

_________________________________________________________________
Più di 100 Emoticon gratis per il tuo Messenger!
http://intrattenimento.it.msn.com/emoticon

Reply via email to