Created
July 31, 2015 06:05
-
-
Save jepster/599df595726854ab8bcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\modules\MY-MODULE\assets; | |
use yii\web\AssetBundle; | |
class MyModuleAsset extends AssetBundle | |
{ | |
// the alias to your assets folder in your file system | |
public $sourcePath = '@yiipass-assets'; | |
// finally your files.. | |
public $css = [ | |
'css/first-css-file.css', | |
'css/second-css-file.css', | |
]; | |
public $js = [ | |
'js/first-js-file.js', | |
'js/second-js-file.js', | |
]; | |
// that are the dependecies, for makeing your Asset bundle work with Yii2 framework | |
public $depends = [ | |
'yii\web\YiiAsset', | |
'yii\bootstrap\BootstrapAsset', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment