Zend things
echo '<br />';
echo '<br />getQueryBuilder';
echo '<br />';
$query=$qb->getQuery();
$sql=$query->getSQL();
print_r($sql);
// Debugging
print_r(get_class_methods($this));
// disable layouts
$this->getHelper('viewRenderer')->setNoRender(true);
$this->getHelper('Layout')->disableLayout(true);
Zend_Debug::dump($loggedIn);
// 404 errors
// A redirect to a 404 would be:
throw new Zend_Controller_Action_Exception('Your message here', 404);
// Or without Exception:
$this->_response->clearBody();
$this->_response->clearHeaders();
$this->_response->setHttpResponseCode(404);
// htaccess in routes.ini
routes.legacy-route-1.type = "Zend_Controller_Router_Route_Static"
routes.legacy-route-1 = "leagacy/url/path/here.php"
routes.legacy-route-1.defaults.module = "default"
routes.legacy-route-1.defaults.controller = "index"
routes.legacy-route-1.defaults.action = "controller"
routes.legacy-route-2.type = "Zend_Controller_Router_Route_Static"
routes.legacy-route-2 = "leagacy/url/path/there"
routes.legacy-route-2.defaults.module = "default"
routes.legacy-route-2.defaults.controller = "index"
routes.legacy-route-2.defaults.action = "controller"
b7595a2e-7250-4338-8dac-d3d721f8ccfe
Created on: 12th October, 2022
Last updated: 12th October, 2022
Tagged With: