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 @@ ...@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace backend\config; namespace backend\assets;
use yii\web\AssetBundle; use yii\web\AssetBundle;
......
<?php <?php
use backend\config\AppAsset; use backend\assets\AppAsset;
use yii\helpers\Html; use yii\helpers\Html;
use yii\bootstrap\Nav; use yii\bootstrap\Nav;
use yii\bootstrap\NavBar; use yii\bootstrap\NavBar;
......
*
!.gitignore
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace frontend\config; namespace frontend\assets;
use yii\web\AssetBundle; use yii\web\AssetBundle;
......
...@@ -3,7 +3,7 @@ use yii\helpers\Html; ...@@ -3,7 +3,7 @@ use yii\helpers\Html;
use yii\bootstrap\Nav; use yii\bootstrap\Nav;
use yii\bootstrap\NavBar; use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs; use yii\widgets\Breadcrumbs;
use frontend\config\AppAsset; use frontend\assets\AppAsset;
use frontend\widgets\Alert; use frontend\widgets\Alert;
/** /**
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace app\config; namespace app\assets;
use yii\web\AssetBundle; use yii\web\AssetBundle;
......
...@@ -3,7 +3,7 @@ use yii\helpers\Html; ...@@ -3,7 +3,7 @@ use yii\helpers\Html;
use yii\bootstrap\Nav; use yii\bootstrap\Nav;
use yii\bootstrap\NavBar; use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs; use yii\widgets\Breadcrumbs;
use app\config\AppAsset; use app\assets\AppAsset;
/** /**
* @var \yii\web\View $this * @var \yii\web\View $this
......
...@@ -240,7 +240,7 @@ details on how to define asset bundles in [asset manager](assets.md) section of ...@@ -240,7 +240,7 @@ details on how to define asset bundles in [asset manager](assets.md) section of
asset bundle, it's very straightforward: asset bundle, it's very straightforward:
```php ```php
frontend\config\AppAsset::register($this); frontend\assets\AppAsset::register($this);
``` ```
### Layout ### 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