E
E
EvgMul2015-11-24 21:16:02
Yii
EvgMul, 2015-11-24 21:16:02

How to use custom layout in Yii2?

Hello. I understand that the question is most likely stupid, but it still stands, which means it needs to be solved. I'm starting to learn such a wonderful framework as Yii2. As far as I understood, it has already styled all the HTML with bootstrap. All widgets, etc. But what if I want to completely customize my website layout using Yii2.
Let's say a coder throws off a bunch of pages for me and tells me to raise it all to Yii2. How to do it?
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lumore, 2015-11-24
@EvgMul

The layout is in 'app/frontend/views/layouts/main.php', the styles are in 'app/frontend/web/css/site.css'. And you will also need: Assets
And pages can be added to 'app/frontend/views/site/', and most importantly, do not forget to add an action in the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question