Good day! Dear gurus, tell me how to create a site / index-content page in Yii2, so that it would be for all content except the main page. Let me explain why: there is one heading on its main page, and for others, another heading is needed, at the same time the menu should be one for everyone. I have the location of the default page / page and as I understand it, I need another page in the same page / index-content for example. Variants with $ _SERVER will not work, I need it as I understand it through the URL Manager or what is using PHP. Perhaps there is a simpler solution, I will be glad to any help.

  • Solution - use layout - Urmuz Tagizade
  • @UrmuzTagizade thank you, that I went deep, but it's easier! Thanks, I will try, I will unsubscribe a bit later. - Res
  • create two layouts. One for the main, the other - the general. And go ahead ) - Urmuz Tagizade
  • @UrmuzTagizade Thank you for the tip! I've done everything. - Res
  • You 're welcome ) - Urmuz Tagizade

0