src/Controller/ModulesController.php
public function renderToolModulesContentAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $zoneConfig = $this->params()->fromRoute('zoneconfig', array());

        $modulesInfo = $this->getModuleSvc()->getModulesAndVersions();
        $modules = $this->getModules();
        //exclude MelisDemoCms cause it is SiteModule
        // it will complicate some default layout/layout of the melis-core
        unset($modules['MelisDemoCms']);
        unset($modulesInfo['MelisDemoCms']);

        $view = new ViewModel();

        $view->melisKey    = $melisKey;
        $view->modules     = $modules;
        $view->modulesInfo = $modulesInfo;

        return $view;
    }
public function renderToolModulesContentAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $zoneConfig = $this->params()->fromRoute('zoneconfig', array());

        $modulesInfo = $this->getModuleSvc()->getModulesAndVersions();
        $modules = $this->getModules();
        //exclude MelisDemoCms cause it is SiteModule
        // it will complicate some default layout/layout of the melis-core
        unset($modules['MelisDemoCms']);
        unset($modulesInfo['MelisDemoCms']);

        $view = new ViewModel();

        $view->melisKey    = $melisKey;
        $view->modules     = $modules;
        $view->modulesInfo = $modulesInfo;

        return $view;
    }
public function renderToolModulesContentAction ( ) { $ melisKey = $ this -> params ( ) -> fromRoute ( 'melisKey' , '' ) ; $ zoneConfig = $ this -> params ( ) -> fromRoute ( 'zoneconfig' , array ( ) ) ; $ modulesInfo = $ this -> getModuleSvc ( ) -> getModulesAndVersions ( ) ; $ modules = $ this -> getModules ( ) ; //exclude MelisDemoCms cause it is SiteModule // it will complicate some default layout/layout of the melis-core unset ( $ modules [ 'MelisDemoCms' ] ) ; unset ( $ modulesInfo [ 'MelisDemoCms' ] ) ; $ view = new ViewModel ( ) ; $ view -> melisKey = $ melisKey ; $ view -> modules = $ modules ; $ view -> modulesInfo = $ modulesInfo ; return $ view ; }
Renders the content section of the tool
@return \Zend\View\Model\ViewModel
Renders the content section of the tool