Browse Source

Added namespace to the controllers of the bootstrap app.

tags/2.0.0-alpha
Qiang Xue 12 years ago
parent
commit
8d23d4c7e5
  1. 1
      apps/bootstrap/protected/config/main.php
  2. 2
      apps/bootstrap/protected/controllers/SiteController.php

1
apps/bootstrap/protected/config/main.php

@ -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',

2
apps/bootstrap/protected/controllers/SiteController.php

@ -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;

Loading…
Cancel
Save