Added namespace to the controllers of the bootstrap app.

This commit is contained in:
Qiang Xue
2013-05-16 15:44:28 -04:00
parent c10fe193d2
commit 8d23d4c7e5
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ return array(
'id' => 'bootstrap', 'id' => 'bootstrap',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'preload' => array('log'), 'preload' => array('log'),
'controllerNamespace' => 'app\controllers',
'modules' => array( 'modules' => array(
// 'debug' => array( // 'debug' => array(
// 'class' => 'yii\debug\Module', // 'class' => 'yii\debug\Module',

View File

@@ -1,5 +1,7 @@
<?php <?php
namespace app\controllers;
use yii\web\Controller; use yii\web\Controller;
use app\models\LoginForm; use app\models\LoginForm;
use app\models\ContactForm; use app\models\ContactForm;