BUG 0000 Report tables ver2, improvements and unification with PMTables

(first commit)
This commit is contained in:
Erik Amaru Ortiz
2011-07-08 19:06:32 -04:00
parent 5493e6155c
commit 4c6fb8d7ab
20 changed files with 3691 additions and 27 deletions

View File

@@ -21,6 +21,8 @@ class Controller
private $headPublisher;
public $ExtVar = Array();
public $controllerClass = '';
public function __construct()
{
@@ -97,7 +99,15 @@ class Controller
$this->$name($this->__request__);
} catch (Exception $e) {
new PMException($e->getMessage(), 1);
$template = new TemplatePower(PATH_TEMPLATE . 'controller.exception.tpl');
$template->prepare();
$template->assign('controller', get_called_class());
$template->assign('message', $e->getMessage());
$template->assign('file', $e->getFile());
$template->assign('line', $e->getLine());
$template->assign('trace', $e->getTraceAsString());
echo $template->getOutputContent();
}
}