S
S
Sergey Defactov2017-01-20 00:39:12
css
Sergey Defactov, 2017-01-20 00:39:12

Different style for categories in Yii?

According to the standard, there is 1 style for the module Articles
cms = Open real estate
It is possible to create several categories such as news, articles, etc.
is it possible to somehow set a separate style for the category, let's say articles

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mitaichik, 2017-01-20
@mitaichik

I think you should dig in this direction https://github.com/yiisoft/yii2/blob/master/docs/g...

M
Murod Smith, 2017-01-25
@man780

This is solved with the help of themes
Here you just need to set one general theme and for individual actions or controllers write ($this->theme = "myTheme";)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question