Ejemplo n.º 1
0
 /**
  * Retrieve a currently matched route
  *
  * @throws Zend_Controller_Router_Exception
  * @return Zend_Controller_Router_Route_Interface Route object
  */
 public function getCurrentRoute($throwException = true)
 {
     if ($throwException) {
         return parent::getCurrentRoute();
     }
     if (!isset($this->_routes[$this->_currentRoute])) {
         return;
     }
     return $this->getRoute($this->_currentRoute);
 }