Answer the question
In order to leave comments, you need to log in
How to make pretty url in Yii2?
Hello!
Help me figure out routing in Yii2: I made a simple business card website, everything works, but when prettyurl(true) is enabled, css, js and pictures disappear. All this is added as in normal html with relative paths ("css/style.css vs."). How to make everything work regardless of the type of routing?
Thank you all in advance.
Answer the question
In order to leave comments, you need to log in
assets/AppAsset.php - configure the paths of included files, relative to the root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question