I am trying to follow the video blog tutorial , I created the database and models etc via the command line.
So I am trying to create a new user and to save it as the video, I create a new user ($user=new user etc ) but when I set $user->save() the user is not at the database , I do the User::model()->count() and the result is 0.
[Edit] I see you're fixed lol - oh well this may help someone eventually lol.
Have you defined the safeAttributes yet? By default when you create a model class extending CActiveRecords it should auto make all fields safe attributes that are defined in the DB table, however if they are not for whatever reason, you'll need to make a new: