O
O
Oligophren2016-02-25 21:10:43
Yii
Oligophren, 2016-02-25 21:10:43

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

1 answer(s)
D
Dmitry Bay, 2016-02-25
@kawabanga

assets/AppAsset.php - configure the paths of included files, relative to the root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question