Learn the ZendX jQuery Date Picker: If you are of medium intelligence and are not well inclined to convoluted and unfathomable examples of the use of ZendX then please be my guest and read: The Most Unfathomable Manual Zend But if you are from earth i have constructed this tutorial to help you implement the […]
Category: Zend Framework 1.12
After enabling the layout with: zf enable layout If you are getting this Error, most likely you are using the following code in Bootstrap.php: $this->bootstrap(‘layout’); Uncaught exception ‘Zend_Application_Bootstrap_Exception’ with message ‘Resource matching “layout” not found’ in It cannot find the resource so it is throwing a fatal error Solution: in you application.ini: add the following […]
Disable Layout and View Zend Often when actions are used in controllers that do some work but do not actually show the user anything, we need to disable layout and view Zend. This is helpful specifically with the use in Ajax (Aynchronous communication with the server). Disable Layout $this->_helper->layout()->disableLayout(); Disbale View $this->_helper->viewRenderer->setNoRender();
To Redirect: /controllers/yourcontroller::youAction() $this->_redirect(‘/path/to/place’); To Show Profiler in a layout /layouts/yourlayout.phtml $this->addScriptpath(APPLICATION_PATH . ‘/profiler/views/scripts’); echo $this->render(‘util/profiler.phtml’); /application/profiler/views/scripts/util/profiler.phtml Database Profiling Report Total queries executed: Total elapsed time: # Query Time () Disable Zend Layout: $this->_helper->layout->disableLayout(); source: Web Development Blog