【问题标题】:Placeholders are not generated for search forms after updating YiiBooster from 2.0.0从 2.0.0 更新 YiiBooster 后,不会为搜索表单生成占位符
【发布时间】:2014-04-01 06:03:05
【问题描述】:

我们使用 Bootstrap Generator 和 views/user/_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' 后,我们可以再次获得块级输入,但不能获得自动生成的占位符。有没有办法在搜索表单上启用自动生成的占位符?

谢谢

【问题讨论】:

    标签: php twitter-bootstrap yii updating twitter-bootstrap-2


    【解决方案1】:

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

    如果你想要最新的bootstrap 3,请使用最新的v4.0.0或更高版本

    【讨论】:

      猜你喜欢
      • 2019-02-25
      • 2021-02-13
      • 2013-03-03
      • 2019-09-05
      • 2013-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-10
      相关资源
      最近更新 更多