All pastes #2056754 Raw Edit

Miscellany

public php v1 · immutable
#2056754 ·published 2011-05-11 12:28 UTC
rendered paste body
<?/*** Cambiare layout da controller*/$this->_helper->layout()->setLayout('render');/*** (dentro un'azione di un controller) Disabilita template per l'azione */$this->_helper->viewRenderer->setNoRender();/*** Dentro un layout per renderizzare altri layout:*/$this->render("head.phtml");/*** Renderizzare il tpl dell'azione*/$this->layout()->content;// Disable the ErrorHandler plugin:// $front è il front controller$front = Zend_Controller_Front::getInstance();$front->setParam('noErrorHandler', true);// To disable the ViewRenderer, do the following prior to calling dispatch(): // Disable the ViewRenderer helper:$front->setParam('noViewRenderer', true);/*** Attivare autoload*//** Zend_Application */require_once 'Zend/Loader/Autoloader.php';$autoloader = Zend_Loader_Autoloader::getInstance();// Creazione di un namespace di auto-inclusione negli include path:$autoloader->registerNamespace('Tekkalab_');