Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function init() |
||
27 | { |
||
28 | // define the path that your publishable resources live |
||
29 | $this->sourcePath = __DIR__.'/dist'; |
||
30 | |||
31 | // define the dependencies |
||
32 | $this->depends = [ |
||
33 | CpAsset::class, |
||
34 | GoogleChartsAsset::class, |
||
35 | AnalyticsAsset::class, |
||
36 | ]; |
||
37 | |||
38 | // define the relative path to CSS/JS files that should be registered with the page |
||
39 | // when this asset bundle is registered |
||
40 | $this->js = [ |
||
41 | 'EcommerceWidget.js', |
||
42 | ]; |
||
43 | |||
44 | $this->css = [ |
||
45 | 'EcommerceWidget.css', |
||
46 | ]; |
||
47 | |||
48 | parent::init(); |
||
49 | } |
||
50 | } |