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.
17 lines
368 B
PHP
17 lines
368 B
PHP
<?php
|
|
|
|
require 'HandBrakeCluster/Main.class.php';
|
|
try {
|
|
$main = HandBrakeCluster_Main::instance();
|
|
$smarty = $main->smarty();
|
|
|
|
$page = new HandBrakeCluster_Page($smarty, $main->request());
|
|
$page->evaluate();
|
|
|
|
$smarty->display('index.tpl');
|
|
} catch (HandBrakeCluster_Exception $e) {
|
|
die("Uncaught Exception: " . $e->getMessage());
|
|
}
|
|
|
|
?>
|