Commit with composer.json

This commit is contained in:
2014-05-27 17:56:46 +04:00
parent c62620593f
commit aec1a60985
20 changed files with 70 additions and 46 deletions

View File

@ -29,7 +29,7 @@ class FrontController
private function __construct()
{
ErrorHandler::init();
// ErrorHandler::init();
$this->router = new Router();
}

View File

@ -7,6 +7,8 @@
* @since 2010-02-25
*/
namespace Majestic;
class Route
{

View File

@ -33,7 +33,7 @@ class Router
if (!$layout) {
$layout = $this->default_layout;
}
$this->routes[$name] = new Route($route, $action, $params, $layout);
$this->routes[$name] = new \Majestic\Route($route, $action, $params, $layout);
}
/**