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/05/18 16:59] 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. | ||
# | # | ||
# | # | ||
Line 712: | Line 714: | ||
* Backend: http:// | * Backend: http:// | ||
- | == Rewrite Base URL / | + | == Rewrite Base URL (/basic/web or / |
References: | References: | ||
* [[http:// | * [[http:// | ||
Line 780: | Line 782: | ||
return [ | return [ | ||
- | ' | ||
//... | //... | ||
Line 791: | Line 792: | ||
//... | //... | ||
], | ], | ||
- | // Define | + | // Activate |
' | ' | ||
' | ' |