From 6b75706de7a895967842ef3a6ed4af8c42be5ec7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 5 Nov 2009 21:37:00 +0200 Subject: Configurable default controller and action --- App.php | 5 ++--- 1 file 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(); -- cgit v1.2.3