Ejemplo n.º 1
0
 public function preDispatch()
 {
     parent::preDispatch();
     $request = $this->getRequest();
     if ($rel = $request->getParam('rel')) {
         if (method_exists($this, Inflector::camelize($rel) . 'Action') && !$request->getParam('final')) {
             $request->setActionName($rel)->setParam('final', true)->setDispatched(false);
             return;
         }
         Zend_Controller_Action_HelperBroker::getExistingHelper('viewRenderer')->setScriptAction($rel);
     }
     $this->_doRequestMethod();
     Zend_Controller_Front::getInstance()->getResponse()->setHeader('Cache-control', 'must-revalidate', true);
 }