[SOLVED] <button> instead of <input type=submit>

Hi All,

I am trying the bootstrap on yii, I am creating the login widget but having difficulty to match the element of the form with css.

CHtml::button -> rendered as <input type=submit, while I need something that will rendered as <button>

Anyont can help?



echo “<button></button>”; :rolleyes:

CHtml not rendering button tag


but you can extend it and add the button method!

There is htmlButton :D - http://www.yiiframework.com/doc/api/1.1/CHtml#htmlButton-detail

Hi mdomba,

Thanks a lot for the help. How could I miss that? I believe it is new as of v1.8 framework.




It was there even in the 1.0 version - http://www.yiiframework.com/doc/api/1.0/CHtml#htmlButton-detail

Hehehe ;) Sorry mdomba, I read 1.0.8 as 1.8 …in need of new glasses…Thanks a lot for your help.