Update Row On Link Click

hi all :) i have a list of notification ! what i want to do is when i click on a notification on the index to view it her statut will be changed on the databese from unread to read !! thx

u can create a new action that you will call on click and this action will update the status in the database.

    public function actionStatusupdate($id)


    	$model = List::findOne($id); // load the list using id

    	$model->status = 'read'; // set the status to read

        $model->update(); // and update u can also use save()