public function listAction()
    {
        // Getting the Site config "MelisDemoCms.config.php"
        $siteConfig = $this->getServiceLocator()->get('config');
        $siteConfig = $siteConfig['site']['MelisDemoCms'];
        $siteDatas = $siteConfig['datas'];
        
        /**
         * Listing News using MelisCmsNewsListNewsPlugin
         */
		$listNewsPluginView = $this->MelisCmsNewsListNewsPlugin();
		$listNewsParameters = array(
		    'template_path' => 'MelisDemoCms/plugin/news-list',
            'pageId' => $this->idPage,
            'pageIdNews' => $siteDatas['news_details_page_id'],
	        'pagination' => array(
	            'nbPerPage' => 6
	        ),
	        'filter' => array(
	            'column' => 'cnews_publish_date',
	            'order' => 'DESC',
	            'unpublish_filter' => true,
	            'site_id' => $siteDatas['site_id'],
	        )
		);
		
		// add generated view to children views for displaying it in the contact view
		$this->view->addChild($listNewsPluginView->render($listNewsParameters), 'listNews');
        
		$this->view->setVariable('renderMode', $this->renderMode);
        $this->view->setVariable('idPage', $this->idPage);
        return $this->view;
    }
public function listAction()
    {
        // Getting the Site config "MelisDemoCms.config.php"
        $siteConfig = $this->getServiceLocator()->get('config');
        $siteConfig = $siteConfig['site']['MelisDemoCms'];
        $siteDatas = $siteConfig['datas'];
        
        /**
         * Listing News using MelisCmsNewsListNewsPlugin
         */
		$listNewsPluginView = $this->MelisCmsNewsListNewsPlugin();
		$listNewsParameters = array(
		    'template_path' => 'MelisDemoCms/plugin/news-list',
            'pageId' => $this->idPage,
            'pageIdNews' => $siteDatas['news_details_page_id'],
	        'pagination' => array(
	            'nbPerPage' => 6
	        ),
	        'filter' => array(
	            'column' => 'cnews_publish_date',
	            'order' => 'DESC',
	            'unpublish_filter' => true,
	            'site_id' => $siteDatas['site_id'],
	        )
		);
		
		// add generated view to children views for displaying it in the contact view
		$this->view->addChild($listNewsPluginView->render($listNewsParameters), 'listNews');
        
		$this->view->setVariable('renderMode', $this->renderMode);
        $this->view->setVariable('idPage', $this->idPage);
        return $this->view;
    }
public function listAction ( ) { // Getting the Site config "MelisDemoCms.config.php" $ siteConfig = $ this -> getServiceLocator ( ) -> get ( 'config' ) ; $ siteConfig = $ siteConfig [ 'site' ] [ 'MelisDemoCms' ] ; $ siteDatas = $ siteConfig [ 'datas' ] ; /**
         * Listing News using MelisCmsNewsListNewsPlugin
         */ $ listNewsPluginView = $ this -> MelisCmsNewsListNewsPlugin ( ) ; $ listNewsParameters = array ( 'template_path' => 'MelisDemoCms/plugin/news-list' , 'pageId' => $ this -> idPage , 'pageIdNews' => $ siteDatas [ 'news_details_page_id' ] , 'pagination' => array ( 'nbPerPage' => 6 ) , 'filter' => array ( 'column' => 'cnews_publish_date' , 'order' => 'DESC' , 'unpublish_filter' => true , 'site_id' => $ siteDatas [ 'site_id' ] , ) ) ; // add generated view to children views for displaying it in the contact view $ this -> view -> addChild ( $ listNewsPluginView -> render ( $ listNewsParameters ) , 'listNews' ) ; $ this -> view -> setVariable ( 'renderMode' , $ this -> renderMode ) ; $ this -> view -> setVariable ( 'idPage' , $ this -> idPage ) ; return $ this -> view ; }
This method will render the list of news

@return \Zend\View\Model\ViewModel
This method will render the list of news