The label tag in the Yii template <?php echo $form->labelex ($model, ' name ');?> post-compilation: <label for= "project_name" class= "required "> Project name <span class=" required ">*</span></label>yii the text label in the template
<?php echo $form->textfield ($model, ' name ', array (' Size ' =>60, ' maxlength ' =>128));?>
After compiling:
<input size= "maxlength=" "Name=" Project[name "id=" project_name "type=" text ">yii Template error Tags <?php echo $form->error ($model, ' name ');?> after compilation: <div class= "errormessage" >{variable}</div>yii label textarea template <?php echo $form->textarea ($model, ' description ', array (' Rows ' =>6, ' cols ' =>50));?> after compilation: <textarea Rows= "6" cols= "Name=" project[description "id=" project_description "class=" error "></textarea> The hidden tag in the yii template <?php echo $form->hiddenfield ($model, ' Create_time ', Array (' Value ' =>time ()));?> post-compilation:< Input value= "1376475100" Name= "Project[create_time]" id= project_create_time "type=" hidden ">yii" password label in template <?php echo $form->passwordfield ($model, ' password ');?> post-compilation: <input name= "Project[password" id= "project_" Password "type=" password ">yii the URL tag in the template <?php echo $form->urlfield ($model, ' url ');?> after compilation: <input name=" Project[url] "id=" Project_url "type=" url >yii template Radio tag <?php echo $form->radiobuttonlist ($modeL, ' update_time ', Array (' 1 ' = ' + ' paging ', ' 0 ' = ' no paging '));?> compiled: <input id= "Ytproject_update_time" type= "hidden" Value= "" Name= "Project[update_time]" ><span id= "Project_update_time" ><input id= "Project_update_time_0" Value= "1" type= "Radio" name= "Project[update_time" "> <label for=" project_update_time_0 "> Pagination </label> <br><input id= "project_update_time_1" value= "0" type= "Radio" name= "Project[update_time]" > < Label for= "Project_update_time_1" > Non-paged </label></span>yii template for file tags <?php echo $form->filefield ($model, ' update_time ');?> post-compilation: <input id= "Ytproject_update_time" type= "hidden" value= "" Name= "Project[update_ TIME] "><input name=" project[update_time] "id=" project_update_time "type=" file ">yii the button label in the template <?php Echo Chtml::submitbutton ($model->isnewrecord ? ' Create ': ' Save ');?> compiled: <input type= "Submit" Name= "Yt0" value= "create" >yii template checkbox label <?php Echo $form CheckBox ($model, ' Update_time ', array (' Checked ' = ' checked ');?> post-compilation: <input id= "Ytproject_update_time" type= "hidden" value= "0" name= "project[update_ TIME] "><input checked=" checked "name=" Project[update_time] "id=" Project_update_time "value=" 1 "type=" checkbox "Select tag in >yii template <?php echo $form->dropdownlist ($model, ' Update_time ', Array (' 1 ' = ' + ' paging ', ' 0 ' = '" no Paging ')) ;?> compiled: <select name= "project[update_time]" id= "Project_update_time" ><option value= "1" > Paging </ Option><option value= "0" > Non-paged </option></select>yii template select Tag <?php echo $form->listbox ($model, ' Update_time ', Array (' 1 ' = ' + ' paging ', ' 0 ' = ' no paging ');?> compiled: <select size= "4" name= "Project[update_time" "Id=" Project_update_time "><option value=" 1 "> Paging </option><option value=" 0 "> Non-paged </option> CheckBox tag in </select>yii template <?php echo $form->checkboxlist ($model, ' Update_time ', Array (' 1 ' = ' + ' paging ', ' 0 ') = ' no paging ');?> compiled: <input id= "Ytproject_update_time" type= "hidden" value= "" Name= "ProjEct[update_time] "><span id=" Project_update_time "><input id=" Project_update_time_0 "value=" 1 "type=" CheckBox "Name=" project[update_time][] "> <label for=" project_update_time_0 "> Pagination </label><br> <input id= "project_update_time_1" value= "0" type= "checkbox" Name= "project[update_time][" "> <label for=" Project_update_time_1 "> The date tag in </label></span>yii template <?php echo $form->datefield ($ Model, ' Update_time ');?> compiled: <input name= "Project[update_time" "id=" Project_update_time "type=" Date "> The number tag in the Yii template <?php echo $form->numberfield ($model, ' number ');?> post-compilation: <input name= "Project[number" "id=" Project_number "type=" number ">yii template email tag <?php echo $form->emailfield ($model, ' email ');?> post-compilation:< Input name= "Project[email" id= "Project_email" type= "email" >yii the label label in the template <?php echo $form->label ($ Model, ' Update_time ');?> compiled: <label for= "Project_update_time" > Update time </label>
Yii Background Templates tab