php - How to use custom layout in Yii2? -


i want use 3 templates yii. have files these:

./views/layouts/main-template-1.php ./views/layouts/main-template-2.php ./views/layouts/main-template-3.php 

what may apply of layouts? because use 3 templates web. in advance

simply place in controller or controller's action

$this->layout = 'main-template-1'; // or 2 or 3 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -