changed application file structure and routing definitions.

This commit is contained in:
Taylor Otwell
2011-08-02 21:23:13 -05:00
parent 32f383205e
commit e40faa1945
6 changed files with 17 additions and 29 deletions

View File

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