14-11-2009
Zend Framework
Disable layout and viewRenderer in controller
Code
PHP
Zend Framework
Disable layout and viewRenderer in controller
To disable the layout and the viewrenderer on the fly inside a controller you can use the following lines :
$this
->
_helper
->
layout
(
)
->
disableLayout
(
)
;
$this
->
_helper
->
viewRenderer
->
setNoRender
(
true
)
;
Keywords:
view
viewrenderer
layout
disable
Related articles:
Access view values from partialLoop - Zend Framework
Change view script in ZF controller action - Zend Framework
Quick setup of navigation menu on every page - Zend Framework
Set response segment in controller actions - Zend Framework
Related links:
registering view plugins - (Zend Framework - Plugins)
Comments:
Leave a comment
Your comment:
Name:
Comment:
Type this number »
»
Send
[x]
Go
search
Home
Code
ActionScript
Actionscript2
Actionscript3
Apache
.htaccess
mod_rewrite
CSS/(X)HTML
CSS3
Javascript
jQuery
Perl
PHP
PHP configuration
Smarty
Zend Framework
Python
SQL
MSSQL
MySQL
Unix/Linux
BASH
MacOSX
Samba
Ubuntu
Projects
Contact
Downloads
Resources