Beginner Trying To Figure Out Useridentity
Rate Topic:

Alright so I have begun using yii and completed the blog tutorial and am now trying a very simple website on my own. Unfortunately I have run into a issue with the userIdentity I created a model for a User which holds things like username, passwordhash, passwordsalt, attempted tries etc. I keep getting parsing errors on

$user->tries = $user->tries + 1;
$user->save();

on failed logins. I am not sure how I should be able to do this...Any suggestions? Below is my UserIdentity