public function run() { $this->controller->pageTitle = "Community"; $servicelist = new CCommunity(); $result = $servicelist->getServiceList(); if ($result['code'] == 200) { $this->controller->render('servicelist', array('list' => $result['data'])); } }
public function run() { $this->controller->pageTitle = "Members"; $memeber = new CCommunity(); $result = $memeber->getMemberList(); if ($result['code'] == 200) { $this->controller->bodyCss = 'whitecolor'; $this->controller->render('memberlist', array('list' => $result['data'])); } }
public function run() { $this->controller->pageTitle = "Companies"; $companylist = new CCommunity(); $result = $companylist->getCompanyList(); if ($result['code'] == 200) { $this->controller->bodyCss = 'whitecolor'; $this->controller->render('companylist', array('list' => $result['data'])); } }
public function run($id) { $community = new CCommunity(); $result = $community->getCompanyListByService($id); $title = Service::model()->findByAttributes(array('id' => $id))->name; $this->controller->pageTitle = $title; if ($result['code'] == 200) { $this->controller->bodyCss = 'whitecolor'; $this->controller->render('servicescompany', array('list' => $result['data'])); } }