/** * error 404 page. useful when: page not found, content not found. * * @return string */ public function indexAction() { $response = new \Symfony\Component\HttpFoundation\Response(); $response->setStatusCode(404); $response->setcontent($this->Theme->render('errors/templates/e404/index')); return $response; }