Пример #1
0
 /**
  * Called when no action method has been found.
  *
  * @return Recipe_Controller_Abstract
  */
 protected function norouteAction()
 {
     $this->setTemplate("noroute");
     $this->assign("action", $this->_action);
     Recipe_Header::statusCode(404);
     return $this;
 }
Пример #2
0
 /**
  * Sets and/or returns the HTTP status code.
  *
  * @param integer $statusCode	Status code [optional]
  *
  * @return integer	Status code
  */
 public static function statusCode($statusCode = null)
 {
     if (!is_null($statusCode)) {
         self::$statusCode = (int) $statusCode;
     }
     return self::$statusCode;
 }