【发布时间】:2015-07-05 16:14:39
【问题描述】:
我有这个 cakePHP 代码:
<?php
echo $this->Form->input('about_me',
array('label' => __l('About Me'),
'class' => 'form-control',
'before' => '<div class="form-group form-group-icon-left"><i class="fa fa-user input-icon input-icon-show"></i>',
'after' => '</div>',
array('escape' => false)
)
);
?>
我希望输出为(为了便于阅读而缩进):
<div class="col-md-6">
<div class="form-group form-group-icon-right"><i class="fa fa-map-marker input-icon"></i>
<label>About me</label>
<input class="form-control" placeholder="Write something" type="text" />
</div>
有人可以帮忙吗?
【问题讨论】:
-
你使用的是什么版本的 CakePHP?
标签: php html twitter-bootstrap cakephp input