K
K
Konstantin2017-04-18 13:29:18
Yii
Konstantin, 2017-04-18 13:29:18

How to include another css file for admin in Yii2?

There is an admin section, how to connect not site.css but admin.css, but so that site.css is not used

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-04-18
@webinar

Two layouts, different assets are connected to them - not the only option
Everything is in detail in the docks: www.yiiframework.com/doc-2.0/guide-structure-asset...
If we took the advanced template, there would be no such problem at all.

D
Dmitry, 2017-04-18
@slo_nik

Good afternoon.
Copy the AppAsset.php file, rename it to AdminAsset.php.
Write down your paths and files.
Connect in admin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question