Hello!
I’m new in yii.
I am now working for filtering data that can be viewed by users.
Is there any extensions/modules concerning "users can only view his own data"?
Thanks:)
Hello!
I’m new in yii.
I am now working for filtering data that can be viewed by users.
Is there any extensions/modules concerning "users can only view his own data"?
Thanks:)
You don’t need any extensions. Use database criteria. Thmsg like
$criteria = new CDbCriteria;
$criteria->compare("user_id",Yii::app()->user->id);
$model = YourModel::model()->find($criteria);
You can read more ay Yii documentation