Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/mvc/DispatcherController.php
<?php
namespace gnomephp\mvc;
/**
 * Used by the dispatcher controller to show exceptions based on a specific exception.
 * 
 * This allows custom 404 pages.
 * @author peec
 *
 */
class DispatcherController extends CoreController{
	
	public function __construct(){
		parent::__construct();

		$this->view->assign('debug', \gnomephp\Configuration::get('application','debug_mode'));
	}
	public function index($e){
		$this->view->assign('exception', $e);
		$this->view->render('errors/generic');
	}
	
	public function routerException($e){
		$this->view->assign('exception', $e);
		$this->view->render('errors/404');
	}
}
Return current item: GnomePHP