Задел на будущее - использование контроллеров с конструкторами

This commit is contained in:
Krivchikov Dmitry 2014-10-11 15:49:21 +04:00
parent da205d6e93
commit c377fccb65
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ class App
if (method_exists($controller, $action)) if (method_exists($controller, $action))
{ {
$controller::$action(); $controller::$action();
// if (method_exists($controller, '__construct')) {
// $class = new $controller();
// $class->$action();
// } else {
// $controller::$action();
// }
} else } else
{ {
self::error404(); self::error404();