status()) { case 404: $this->template = '404'; break; default: $this->template = '500'; break; } } public function handleException(\Exception $e) { $this->exception = $e; $this->setLayout(false); $this->runAction("handle"); if (!$this->responded()) { $this->render(['action' => $this->template]); } $this->_create_response_body(); } public function actionRan() { return true; } }