i have a form which works fine. i want to automatically update the form textfields with the variable information if defined else it will take user information.
suppose i have a form which takes name as input and i want to update it with yii::app->user->username or Yii::app()->user->email
then can anyone please help me how to do it. in case the value is not provided then user information should be taken.