Autor | Zpráva | ||
---|---|---|---|
Tirus Profil * |
#1 · Zasláno: 16. 3. 2011, 12:44:14
Prosím, jak bych získal o jakou error message se jedná. potřeboval bych upravit toto:
<?php class ErrorController extends Controllers_AbstractController { public function index() { $localizator = new Localize(); $lang = $this->registry['lang']; $title = $localizator->getLocalizedMessage('Error404', $lang); $req_page = urldecode("http://$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]"); $this->view->set('lang', $lang); $this->view->set('title', $title); $this->view->set('sitename', $this->registry['sitename']); $this->view->set('req_page', $req_page); $this->view->set('content', $this->view->fetch('ErrorMessages/404_' . $this->registry['lang'] . '.tpl')); // render error page header("HTTP/1.0 404 Not Found"); $this->render('error.tpl'); die; } } |
||
Časová prodleva: 6 dní
|
|||
Alphard Profil |
#2 · Zasláno: 22. 3. 2011, 20:26:55
Jak se dostane řízení tomuto ErrorControlleru? Jestli ho volá catch block za try, tak tam získáte chybu snadno.
|
||
Časová prodleva: 13 let
|
0