php - Yii2 Active Form 2 Layout in 1 page -


i'm using active form inserting data in yii2.

the default layout active form vertical layout (standard layout) show label on top of textfield.

ss there way use 2 layouts in same page?

in case, want use standard layout have inline layout in 'textfield' part.

yes, it's possible use nested layouts:

<?php $this->begincontent('@app/views/layouts/base.php'); ?>  ...child layout content here...  <?php $this->endcontent(); ?> 

more information available in according official docs section.


Comments