Yii Model Update

This tutorial will help you to get the information about yii update function. I added the source code to update one or multiple records using different update function in yii framework model.

                                    "UserID=$id and status IS NULL "
$model=User::model()->updateAll(array( 'status' => 1), 'UserID ='.$userid);                                

Leave a Reply

Your email address will not be published. Required fields are marked *