Browse Source

Added namespace to the controllers of the bootstrap app.

tags/2.0.0-beta
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',
'basePath' => dirname(__DIR__),
'preload' => array('log'),
'controllerNamespace' => 'app\controllers',
'modules' => array(
// 'debug' => array(
// 'class' => 'yii\debug\Module',

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

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

Loading…
Cancel
Save