【发布时间】: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