Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / restful / app.php
1 <?php
2     require('remote/init.php');
3
4     // Get Request
5     $request = new Request(array('restful' => true));
6
7     // Get Controller
8     require('remote/app/controllers/' . $request->controller . '.php');
9     $controller_name = ucfirst($request->controller);
10     $controller = new $controller_name;
11
12     // Dispatch request
13     echo $controller->dispatch($request);
14