Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:yii2:setup_and_configuration [2018/06/06 09:37] smayr [Rewrite Base URL /frontend/web] |
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 == | ||
Line 385: | Line 386: | ||
# HTTPS redirect for pages users input sensitive data (eg. password) | # HTTPS redirect for pages users input sensitive data (eg. password) | ||
+ | # NOTE: Disable these in localhost or other server without HTTPS. | ||
# | # | ||
# | # |