public function actionGmap($id, $model = null) { if ($model === null) { $model = $this->loadModel($id); } $result = CustomGMap::actionGmap($id, $model, $this->renderPartial('_marker', array('model' => $model), true), true); if ($result) { return $this->renderPartial('_gmap', $result, true); } return ''; }
public function actionGmap($id) { $model = $this->loadModelUserAd($id); $result = CustomGMap::actionGmap($id, $model, $this->renderPartial('//../modules/apartments/views/backend/_marker', array('model' => $model), true)); if ($result) { return $this->renderPartial('//../modules/apartments/views/backend/_gmap', $result, true); } }