/** * For multilingual site mode */ public function runMultilingual() { // check if action is configured $this->checkConditions(array('model', 'updateRecordId', 'tableModelClassName')); /** @var $controller BackendController */ $controller = $this->getController(); $this->model->setTableModelClassName($this->tableModelClassName); $this->model->loadData($this->updateRecordId); if ($this->redirectUrl) { $controller->setRedirectUrl($this->redirectUrl); } $controller->setModel($this->model); if (isPostOrAjaxRequest()) { $controller->processUpdate(); } $controller->render($this->view, array('model' => $controller->getModel(), 'pageTitle' => $this->pageTitle, 'formId' => $this->formId, 'formView' => $this->formView, 'formAction' => $this->formAction, 'imageUploadHandlerUrl' => $this->imageUploadHandlerUrl, 'coverPreviewWidth' => $this->coverPreviewWidth, 'coverPreviewHeight' => $this->coverPreviewHeight)); }