<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
class ErrorController extends Zend_Controller_Action
public function init() {
$this->_helper->SyjReset->resetPlaceHolders();
- $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
- $this->view->headLink()->appendStylesheet('css/error.css', 'all');
+ $this->_helper->SyjMedias->addStyleSheets('error');
}
public function errorAction() {
$error_code = 400; // Bad Request
} else if ($error->exception instanceof Syj_Exception_Forbidden) {
$error_code = 403; // Forbidden
+ } else if ($error->exception instanceof Syj_Exception_NotImplemented) {
+ $error_code = 501; // Not Implemented
} else if ($error->exception instanceof Syj_Exception_NotFound) {
$error_code = $error->exception->getCode();
}