hi
< $model=new Apps;
$model->attributes=$_POST['Apps'];
$password = $model->password;
$model->password = $model->hashPassword($user->password);
$model->date_joined = date('Y-m-d');
$model->code =$model->username ;
$model->icon_name ='fert';
$model->signup_ip = '121222';
$model->is_active =1;
if($model->save())
Yii::app()->user->setFlash('save', 'Your information is saved use username password to login');
$this->redirect(array('site/login'));>
this is code of my actionCreate some of fields are coming from view form and some of i am giving in manually
whole table has 71 fields so i can not take all fileds from user at a time so only required fields there please help me to sort out this thing i have faced this problem in my two yii projects…