aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-11-05 21:37:00 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-11-05 21:37:00 +0200
commit6b75706de7a895967842ef3a6ed4af8c42be5ec7 (patch)
treea886b3bd8f4000d1e4ebf4ae2773776b3b570cf5
parentd07ac0a8be78fa69b9c874576dcff547a02a6523 (diff)
downloadmain-6b75706de7a895967842ef3a6ed4af8c42be5ec7.tar.gz
main-6b75706de7a895967842ef3a6ed4af8c42be5ec7.tar.bz2
main-6b75706de7a895967842ef3a6ed4af8c42be5ec7.zip
Configurable default controller and action
-rw-r--r--App.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/App.php b/App.php
index 6eb9a24..242d2bb 100644
--- a/App.php
+++ b/App.php
@@ -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();