Commit 6fd0f0da by Qiang Xue

Merge pull request #1197 from slavcodev/asset-dir

Move AppAsset from config to assets directory
parents 5b0886f1 4c4f7bd7
......@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace backend\config;
namespace backend\assets;
use yii\web\AssetBundle;
......
<?php
use backend\config\AppAsset;
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
......
*
!.gitignore
\ No newline at end of file
......@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace frontend\config;
namespace frontend\assets;
use yii\web\AssetBundle;
......
......@@ -3,7 +3,7 @@ use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\config\AppAsset;
use frontend\assets\AppAsset;
use frontend\widgets\Alert;
/**
......
......@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/
*/
namespace app\config;
namespace app\assets;
use yii\web\AssetBundle;
......
......@@ -3,7 +3,7 @@ use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\config\AppAsset;
use app\assets\AppAsset;
/**
* @var \yii\web\View $this
......
......@@ -240,7 +240,7 @@ details on how to define asset bundles in [asset manager](assets.md) section of
asset bundle, it's very straightforward:
```php
frontend\config\AppAsset::register($this);
frontend\assets\AppAsset::register($this);
```
### Layout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment