Improved template handling with exceptions

The Page class is now responsible for executing the subpage template
rather than the index file.
Template processing has been improved with exceptions to catch 404s, or
any other template exception, which will abort the current page and
display an error document instead.
This commit is contained in:
2010-03-21 00:21:04 +00:00
parent 42268af1c7
commit 611182d09e
9 changed files with 102 additions and 14 deletions

View File

@@ -0,0 +1,10 @@
<?php
$main = HandBrakeCluster_Main::instance();
$config = $main->config();
$this->smarty->assign('display_exceptions', $config->get('debug.display_exceptions'));
$this->smarty->assign('exception', $exception);
$this->smarty->assign('exception_type', get_class($exception));
?>