Commit 63694de7 by Taylor Otwell

Changing back to old routing system.

parent 277d1611
...@@ -150,7 +150,7 @@ System\Package::load(System\Config::get('package.autoload')); ...@@ -150,7 +150,7 @@ System\Package::load(System\Config::get('package.autoload'));
// -------------------------------------------------------------- // --------------------------------------------------------------
// Register the route filters. // 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. // Execute the global "before" filter.
...@@ -162,7 +162,7 @@ $response = System\Routing\Filter::call('before', array(), true); ...@@ -162,7 +162,7 @@ $response = System\Routing\Filter::call('before', array(), true);
// ---------------------------------------------------------- // ----------------------------------------------------------
if (is_null($response)) 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(); $response = (is_null($route)) ? System\Response::error('404') : $route->call();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment