public function renderError($error = NULL) { if ($error) { $this->view->error = $error; } echo $this->view->render('error.phtml'); }