I wanted to create a user registration page but it found out a difficult. I can not write in database but can read from it with no problems. also I am getting no error at all when I want to insert via Active Error. here is example of what I am doing
public function actionIndex()
{
$user = new User;
$user->username = 'irakli';
$user->save();
$this->render('index');
}
This code is NOT working but I am getting no error at all.
Please take a note that
$record=User::model()->findByAttributes(array('username'=>$this->username));
$data = $record->id;
$this->render('index', array('data'=>$data));
is working correctly.
This should help debug problem.