public function actionGetgroupmenucount() { $userid = $_REQUEST['userid']; $share = ""; //$_REQUEST['share']; $tilesslider = $this->refreshtilewidget($userid, $_REQUEST['groupid'], $share, 0, 0, 1); $usergroup = $this->getGroupinfo($userid, $share); $members = GroupController::getmembersdetails($userid, $_REQUEST['groupid'], 0, 0); $memcount = count($members); $result = GroupTracking::model()->findByAttributes(array('tracker_userid' => Yii::app()->session['login']['id'], 'tracked_groupid' => $_REQUEST['groupid'], 'tracked_userid' => $userid)); if (count($result) == '0') { $results = 'Join Group'; $isgroupmem = 0; //Not a member } else { $results = 'UnJoin Group'; $isgroupmem = 1; // Member } $this->widget('TopMenu', array('userid' => $userid, 'isshare' => $share, 'alltiles' => $tilesslider['totaltilecount'], 'imgcount' => $tilesslider['imgcount'], 'videocount' => $tilesslider['videocount'], 'finaocount' => $this->getfinaoinfo($userid, $_REQUEST['groupid'], "", $share, -1, 1, 1), 'followcnt' => $this->getfollowersdetails($userid, -1, 0, 1), 'groupcnt' => $usergroup['groupcount'], 'memcount' => $memcount, 'isgroup' => $_REQUEST['groupid'], 'results_group' => $results)); }