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 !

Reply via email to