I want to create simple form using CForm (yii framework) but ‘elements’ => array(‘username’=>array(‘type’=>’text’)) does not generate input element.
I want to create simple form using CForm (yii framework) but ‘elements’ => array(‘username’=>array(‘type’=>’text’))
Share
From the CForm doc:
So I guess ‘username’ attibute should be added to the model object as well.