Articles Posted in the " Yii CHtml " Category


  • CHtml ListBox

    CHtml ListBox

    CHtml::listBox() function is used for creating ListBox in yii framework. This post will help you to understand about how to create ListBox in different method, How to assign value, how to get ListBox value […]


  • CHtml FileField

    CHtml FileField

    Using CHtml class we are creating fileField in yii framework. This post will help you to understand about how to upload file in different method, how to get and save the uploaded file in […]


  • CHtml Radio Button List

    CHtml Radio Button List

    Using CHtml class we are creating radioButtonList in yii framework. This post will help you to understand about how to create radioButtonList in different method, How to assign value, how to get radioButtonList value […]


  • CHtml Radio Button

    CHtml Radio Button

    Using CHtml class we are creating radioButton in yii. This post will help you to understand about how to create radioButton in different method, radioButton properties, array value, how to get radioButton value in […]


  • CHtml Checkbox

    CHtml Checkbox

    Using CHtml class we are creating checkbox in yii. This post will help you to understand about how to create checkbox in different method, checkbox properties, array value, how to get checkbox value in […]


  • CHtml Button

    CHtml Button

    CHtml is a static class and it is used to generate a button. public static string button(string $label='button', array $htmlOptions=array ( )) CHtml class used in CFormButtonElement to represents a form button element. CFormButtonElement […]


  • Yii Hint For Form Radio Button

    Yii Hint For Form Radio Button

    This tutorial will help you to style the radio button list on form. Using template, separator, style and label options, We can give proper style to radio button. <div class="row"> <?php echo $form->labelEx($model,'isactive'); ?> […]


  • List Box Selection On Update In Yii

    List Box Selection On Update In Yii

    Here i added the source code of list box selection on update model of yii <div class="row"> <?php echo $form->labelEx($model,'country'); ?> <?php $country = array('1' => 'India', '2' => 'Australia', '3' => 'America', '4' […]


  • CHtml Checkbox List

    CHtml Checkbox List

    Using CHtml class we are creating checkBoxList in yii. This post will help you to understand about how to create checkBoxList in different method, How to assign value, how to get checkBoxList value in […]