<button type =“submit”>而不是<input type =“submit”/> cakephp jsHelper </button>

时间:2013-09-04 11:50:58

标签: cakephp helper formhelper

使用cakePHP jsHelper:

<?php echo $this->Js->submit(__('Search'),array('class'=>'btn btn-info','div'=>false));?>

这将生成如下内容:

<input  class="btn btn-info" id="submit-561877025" type="submit" value="Search"/>

但我需要这样的事情:

<button  class="btn btn-info" id="submit-561877025" type="submit">Search</button>

有没有动态解决方案?

1 个答案:

答案 0 :(得分:0)

<?php echo $this->Js->submit(__('Search'),array('class'=>'btn btn-info','type'=>'button','div'=>false));?>