【发布时间】:2015-07-31 11:51:09
【问题描述】:
在 Yii2 中为页面制作不同布局的最佳做法是什么? 我面临的问题是 Yii2 layout/main.php 代码看起来像
<div class="container">
<?= $content ?>
</div>
Yii2 使用 Bootstrap,我只需要在 site/index.php 中制作全幅图像。 基本上在 index.php 中我需要包装
<?= $this->render('_search') ?>
进入 .container-fluid 类。
如何将 .container 类替换为 .container-fluid 类,仅用于 index.php 页面?
【问题讨论】:
标签: html css twitter-bootstrap layout yii2