Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>>>>>>>Controler
- public function actionFriends()
- {
- $userId = Yii::app()->user->id;
- $this->dataProvider=new CActiveDataProvider('User', array(
- 'pagination'=>array(
- 'pageSize'=>Yii::app()->params['postsPerPage'],
- ),
- 'criteria'=>array(
- 'condition'=>"friend.user_id={$userId}",
- 'order'=>'t.created DESC',
- 'with'=>array('friends'),
- ),
- ));
- $this->render('//friend/index',array(
- 'dataProvider'=>$this->dataProvider,
- ));
- }
- >>>>>>>>>>>>>>>>>>IN VIEW
- echo '<pre>';
- var_dump($data->skwigleCount);exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement