]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/IdxController.php
explaination message in case of 404/410 errors for idx controller
[syj.git] / application / controllers / IdxController.php
index 0817fe65c973250a0bc04d6bd5d81f8bcd6436aa..6ce7eb21f614e249472afe7fbc9a2dd019b274c0 100644 (file)
@@ -51,8 +51,10 @@ class IdxController extends Zend_Controller_Action
             $path = new Syj_Model_Path();
             if (!$pathMapper->findByUrl($url, $path)) {
                 if (is_numeric($url) and $pathMapper->hasexisted($url)) {
+                    $this->view->message = $this->view->translate("route has been deleted");
                     throw new Syj_Exception_NotFound('Gone', 410);
                 } else {
+                    $this->view->message = $this->view->translate("route does not exist");
                     throw new Syj_Exception_NotFound('Not Found', 404);
                 }
             }