<?php
UseYii\Helpers\Html;
?>
<?php
Echo Html::beginform ();
?>
<?=Html::BeginForm (‘‘,' Post ',[' ID '=' AddForm ',' Class '=' Form ',' Data '=' FM ']);?>
<?=Html::Input' Text ',' Name ',‘‘,[' Class '=' Name ',' Placeholder '=' Please enter your name ']);?>
<?="<br>";?>
<?=Html::Input' Password ',' Password ',‘‘,[' Class '=' Password ',' Placeholder '=' Please enter your password ']);?>
<?="<br>";?>
<?=Html::Input' Hidden ',' Hidden ',‘‘,[' Class '=' Hidden ']);?>
<?="<br>";?>
<?php EchoHtml::TextArea' Text_rows ',' Yang Bo ',[' Class '=' TextArea ']);?>
<?="<br>";?>
<?=Html::Radiolist (' Sex ',1,[0="Woman",1="Man"],[' Class '=' Radio_sex '])?>
<?=Html::CheckBoxList (' Color ',1,[0="Blue",1="Red"],[' Class '=' Checkbox_color '])?>
<?=Html::DropDownList (' Color ',1,[0=Beijing,1="Shanghai"], [' class '= 'dropdown_city '])?>
<?=Html::label (' Show content ',' label111 ', [' class ' = '= ' label ', ' style ') ' = = ' color:black '])? ><?=html::fileinput (' Image ', null,[' class ' = ' upload_img ')? ><?=html:: button (' Normal button ', [' class ' = ' button '])? ><?=html::submitbutton (' Submit button ', [' class ' + ' btn submit-btn submit ']) ? ><?=html::resetbutton (' Reset button ', [' class ' = ' reset btn reset-btn '])? ><?=html::endform ();? >
Html:: Form