tvheadend/vendor/ext-3.4.1/examples/writer/app.php
Adam Sutton bafcfff42d webui: restructure webui/extjs source files
I want to keep the 3rd-party packages away from the main source
where possible.
2013-06-03 17:11:01 +01:00

17 lines
423 B
PHP

<?php
require('remote/init.php');
// Get Request
$request = new Request(array('restful' => false));
//echo "<P>request: " . $request->to_string();
// Get Controller
require('remote/app/controllers/' . $request->controller . '.php');
$controller_name = ucfirst($request->controller);
$controller = new $controller_name;
// Dispatch request
echo $controller->dispatch($request);