Hmmmm actually can I do this via calling the search action??? and when the user logs into the admin page it searches automatically and shows only thier items?
What you are going to do is in the controller of the your first though is correct.
CDbCriteria should look like.
$criteria=new CDbCriteria(array(
'condition'=>'status= :memberidparameter',
'params'=>array(':memberidparameter'=>$memb) , //i am not sure if the must be an array there.
));
What this differs from yours and think this is the error is
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('Member', array(
'criteria'=>array(
'condition'=>'memberId [size="4"]===Yii::app()->user->id [/size]',
'with'=>array('team'),
),
don’t forget tha the condition is
so === don’t help and finally if it would you then going to make this equal with the string Yii::app()->user->id NOT the val.