Autor Zpráva
Tirus
Profil *
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;
    }
}
Alphard
Profil
Jak se dostane řízení tomuto ErrorControlleru? Jestli ho volá catch block za try, tak tam získáte chybu snadno.

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0