How To Create Textfield?

I want to create textField but the second parameter is not define in database, how to do?

models file

public function attributeLabels()


	return array(

		'name' => 'Name',

		'logo' => 'Logo',



Veiw file

<?php echo $form->textField($model,'check',array('class'=>'span5','maxlength'=>255)); ?>

It depends what you want to do with it, but you can create a text field like this:

<?php echo CHtml::textField('check', '', array('class'=>'span5','maxlength'=>255)); ?>

I want to user repeat password.

In which case, it’s easier to create a public attribute in your class and to use a compare rule. There’s an example a little way down in this section of the guide.

The attribute:

    public $verifyPassword;

The rule:

    public function rules()


        return array (

            // ... some rules ...

            array('verifyPassword', 'compare', 'compareAttribute'=>'password', 'on'=>'relevantScenarios'),

            // ... some more rules ...



Thank you very much.