AppAsset.php
819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */
namespace frontend\assets;
use yii\web\AssetBundle;
use yii\web\View;
/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/style.css',
        'http://fonts.googleapis.com/css?family=Roboto',
    ];
    public $js = [
    ];
    public $depends = [
        'yii\web\JqueryAsset',
        'sersid\owlcarousel\Asset'
        //'yii\web\YiiAsset',
        //'yii\bootstrap\BootstrapAsset',
    ];
    
    public function init() {
        $this->jsOptions['position'] = View::POS_HEAD;
        parent::init();
    }    
}