Changing back to old routing system.

This commit is contained in:
Taylor Otwell 2011-08-03 08:44:43 -05:00
parent 277d161197
commit 63694de75b
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@
// --------------------------------------------------------------
// Register the route filters.
// --------------------------------------------------------------
System\Routing\Filter::register(require ROUTE_PATH.'filters'.EXT);
System\Routing\Filter::register(require APP_PATH.'filters'.EXT);
// --------------------------------------------------------------
// Execute the global "before" filter.
@ -162,7 +162,7 @@
// ----------------------------------------------------------
if (is_null($response))
{
$route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader(ROUTE_PATH))->route();
$route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader(APP_PATH))->route();
$response = (is_null($route)) ? System\Response::error('404') : $route->call();
}