public function back()
    {
        $viewModel = new ViewModel();
        $viewModel->setTemplate('MelisFront/dragdropzone/meliscontainer');

        $viewModel->pluginFrontConfig = $this->pluginFrontConfig;
        $viewModel->dragdropzoneId = $this->pluginFrontConfig['id'];
        $viewModel->configPluginKey = $this->configPluginKey;
        $viewModel->pluginName = $this->pluginName;
        $viewModel->pluginXmlDbKey = $this->pluginXmlDbKey;

        $pageId = (!empty($this->pluginFrontConfig['pageId'])) ? $this->pluginFrontConfig['pageId'] : 0;

        $siteModule = getenv('MELIS_MODULE');
        $melisPage = $this->getServiceLocator()->get('MelisEnginePage');
        $datasPage = $melisPage->getDatasPage($pageId, 'saved');
        if($datasPage)
        {
            $datasTemplate = $datasPage->getMelisTemplate();

            if(!empty($datasTemplate))
            {
                $siteModule = $datasTemplate->tpl_zf2_website_folder;
            }
        }

        $viewModel->siteModule = $siteModule;

        return $viewModel;
    }
public function back()
    {
        $viewModel = new ViewModel();
        $viewModel->setTemplate('MelisFront/dragdropzone/meliscontainer');

        $viewModel->pluginFrontConfig = $this->pluginFrontConfig;
        $viewModel->dragdropzoneId = $this->pluginFrontConfig['id'];
        $viewModel->configPluginKey = $this->configPluginKey;
        $viewModel->pluginName = $this->pluginName;
        $viewModel->pluginXmlDbKey = $this->pluginXmlDbKey;

        $pageId = (!empty($this->pluginFrontConfig['pageId'])) ? $this->pluginFrontConfig['pageId'] : 0;

        $siteModule = getenv('MELIS_MODULE');
        $melisPage = $this->getServiceLocator()->get('MelisEnginePage');
        $datasPage = $melisPage->getDatasPage($pageId, 'saved');
        if($datasPage)
        {
            $datasTemplate = $datasPage->getMelisTemplate();

            if(!empty($datasTemplate))
            {
                $siteModule = $datasTemplate->tpl_zf2_website_folder;
            }
        }

        $viewModel->siteModule = $siteModule;

        return $viewModel;
    }
public function back ( ) { $ viewModel = new ViewModel ( ) ; $ viewModel -> setTemplate ( 'MelisFront/dragdropzone/meliscontainer' ) ; $ viewModel -> pluginFrontConfig = $ this -> pluginFrontConfig ; $ viewModel -> dragdropzoneId = $ this -> pluginFrontConfig [ 'id' ] ; $ viewModel -> configPluginKey = $ this -> configPluginKey ; $ viewModel -> pluginName = $ this -> pluginName ; $ viewModel -> pluginXmlDbKey = $ this -> pluginXmlDbKey ; $ pageId = ( ! empty ( $ this -> pluginFrontConfig [ 'pageId' ] ) ) ? $ this -> pluginFrontConfig [ 'pageId' ] : 0 ; $ siteModule = getenv ( 'MELIS_MODULE' ) ; $ melisPage = $ this -> getServiceLocator ( ) -> get ( 'MelisEnginePage' ) ; $ datasPage = $ melisPage -> getDatasPage ( $ pageId , 'saved' ) ; if ( $ datasPage ) { $ datasTemplate = $ datasPage -> getMelisTemplate ( ) ; if ( ! empty ( $ datasTemplate ) ) { $ siteModule = $ datasTemplate -> tpl_zf2_website_folder ; } } $ viewModel -> siteModule = $ siteModule ; return $ viewModel ; }
Redefining the back function as the display of tags is specific with TinyMce
Redefining the back function as the display of tags is specific with TinyMce