public function actionOSmap($id) { $model = $this->loadModelUserAd($id); $result = CustomOSMap::actionOsmap($id, $model, $this->renderPartial('//../modules/apartments/views/backend/_marker', array('model' => $model), true)); if ($result) { return $this->renderPartial('//../modules/apartments/views/backend/_osmap', $result, true); } }