diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-11-05 21:37:00 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-11-05 21:37:00 +0200 |
commit | 6b75706de7a895967842ef3a6ed4af8c42be5ec7 (patch) | |
tree | a886b3bd8f4000d1e4ebf4ae2773776b3b570cf5 /App.php | |
parent | d07ac0a8be78fa69b9c874576dcff547a02a6523 (diff) | |
download | main-6b75706de7a895967842ef3a6ed4af8c42be5ec7.tar.gz main-6b75706de7a895967842ef3a6ed4af8c42be5ec7.tar.bz2 main-6b75706de7a895967842ef3a6ed4af8c42be5ec7.zip |
Configurable default controller and action
Diffstat (limited to 'App.php')
-rw-r--r-- | App.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -21,12 +21,11 @@ class App @list($controller, $param, $action) = App::url(); if (empty($param)) { - $action = "index"; + $controller = self::conf("defaults.action"); } if (!$controller) { - $dc = self::conf("defaults.route"); - $controller = $dc; + $controller = self::conf("defaults.controller"); } ob_start(); |