public function actionMyshortlist() { try { $this->pageTitle = 'My Shortlist - ' . Yii::app()->params['title']; $this->layout = 'application.views.layouts.layout_user'; //Kvan $shortList = ProUserShortList::getShortListByUser(Yii::app()->user->id); $arrShortListing = array(); if (!empty($shortList)) { foreach ($shortList as $listing) { $arrShortListing[] = $listing->listing_id; } } $listing = Listing::getListingByArrId($arrShortListing); $this->render('normal_user/myshortlist', array('listing' => $listing)); } catch (Exception $exc) { echo $exc->getMessage(); } } //Kvan public function actionSendEnquiryShortList() { $this->pageTitle = 'Enquiry Multiple Listing - ' . Yii::app()->params['title']; $this->layout = 'application.views.layouts.layout_user'; if (isset($_POST['chkList'])) { $arrEnquiry = $_POST['chkList']; $listing = Listing::getListingByArrId($arrEnquiry); $model = new ProEnquiryProperty(); $model->name = Yii::app()->user->first_name . ' ' . Yii::app()->user->last_name; $model->email = Yii::app()->user->email; $model->phone = Yii::app()->user->phone; $model->country_id = Yii::app()->user->country; if (isset($_POST['ProEnquiryProperty'])) { $model->attributes = $_POST['ProEnquiryProperty']; $model->get_update = 1; if ($model->validate()) { foreach ($arrEnquiry as $enquiry) {