mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
Added namespace to the controllers of the bootstrap app.
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user