twitter bootstrap - Setting different container type for Yii2 BS layout -


does know how change container layout in yii2 on pages.

naturally, if change container div 'container-fluid' instead of default 'container' in site css, site wide change. want use on 1 or 2 specific views, how can target particular views container div ?

create layout suitable in directory views\ layouts , call in action entering

 $ this-> layout = 'yourlayout';   return $ this-> render ('yourform', [        'model' => $ yourmodel,   ]);  

for example layout main use

    <div class='container'>                 ......>         <?= $content ?>     </div> 

the layout wide use no container window wide page

    <div >                 ......>         <?= $content ?>     </div> 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -