Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
systems:yii2:setup_and_configuration [2018/06/22 16:33] smayr [htaccess File] |
systems:yii2:setup_and_configuration [2020/05/20 16:22] (current) ajdavis [Upgrade Yii] |
||
---|---|---|---|
Line 121: | Line 121: | ||
</ | </ | ||
- | Rename '' | + | Yii2 expects Bower and NPM packages to be installed to vendor/bower and vendor/npm folders respectively. So, to use asset-packagist it's necessary to add aliases in web.php: |
<code php> | <code php> | ||
- | //... | + | $config = [ |
- | public function setVendorPath($path) | + | |
- | { | + | 'aliases' |
- | | + | ' |
- | Yii:: | + | ' |
- | | + | ], |
- | | + | ... |
- | } | + | ]; |
</ | </ | ||
== Initial Configuration == | == Initial Configuration == |