From 8d23d4c7e55424f35653a85a72550f87c4d2e494 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 16 May 2013 15:44:28 -0400 Subject: [PATCH] Added namespace to the controllers of the bootstrap app. --- apps/bootstrap/protected/config/main.php | 1 + apps/bootstrap/protected/controllers/SiteController.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apps/bootstrap/protected/config/main.php b/apps/bootstrap/protected/config/main.php index f6813e0..b5980da 100644 --- a/apps/bootstrap/protected/config/main.php +++ b/apps/bootstrap/protected/config/main.php @@ -4,6 +4,7 @@ return array( 'id' => 'bootstrap', 'basePath' => dirname(__DIR__), 'preload' => array('log'), + 'controllerNamespace' => 'app\controllers', 'modules' => array( // 'debug' => array( // 'class' => 'yii\debug\Module', diff --git a/apps/bootstrap/protected/controllers/SiteController.php b/apps/bootstrap/protected/controllers/SiteController.php index b06ed06..534bc59 100644 --- a/apps/bootstrap/protected/controllers/SiteController.php +++ b/apps/bootstrap/protected/controllers/SiteController.php @@ -1,5 +1,7 @@