从 2.0.0 更新 YiiBooster 后,不会为搜索表单生成占位符


Placeholders are not generated for search forms after updating YiiBooster from 2.0.0

我们使用引导生成器和视图/用户/_search.php生成 CRUD,之前我们使用

<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
  'action'=>Yii::app()->createUrl($this->route),
  'method'=>'get',
  'type'=>'inline',
));
?>
<div class="row-fluid">
  <div class="span3">
    <?php echo $form->textFieldRow($model, 'firstName', array('class'=>'span12')); ?>
  </div>
</div>

但是在将 YiiBooster 2.0.0 更新到最新版本后,搜索表单上所有自动生成的占位符都从系统中消失了,并且块级输入的大小也调整了。

将"type"=>"inline"更新为"type"=>"search"后,我们可以再次获得块级输入,但不能自动生成占位符。是否有任何方法可以在搜索表单上启用自动生成的占位符?

谢谢

如果您想使用 bootstrap 2,请升级到 v3.0.1 或任何更高版本的 3.x.x

如果您想要最新的引导程序 3,请使用最新的 v4.0.0 或更高版本