Wednesday, September 3, 2014

CHtml - textField () YII

Standard


Example 1: Create a blank text field

 

RESULT

 




Example 2: Create a text box with the name and Value

 



RESULT

 




Example 3: Create a text box with custom attributes: id, width, maxlength

  'id' ,    'width' => 100 , 
        'maxlength' => 100 )); ?>

RESULT

 




Example 4: Create a text box with the attribute disabled. 

  True)); ?>

RESULT

 

      

1 comment: