public function getPageIdBreadcrumbAction()
    {
        $idPage = $this->params()->fromRoute('idPage', $this->params()->fromQuery('idPage', ''));
        $idPage = ($idPage == 'root')? -1 : $idPage;
        $includeSelf = $this->params()->fromRoute('includeSelf', $this->params()->fromQuery('includeSelf', ''));
        
    	$melisEngineTree = $this->serviceLocator->get('MelisEngineTree');
		$breadcrumb = $melisEngineTree->getPageBreadcrumb($idPage, 0, true);
		
		$pageFatherId = $idPage;
		$jsonresult = array();
		
		if($includeSelf){
		    array_unshift($jsonresult, $pageFatherId);
		}
		
		while($pageFatherId != NULL){
		    
		    $page = $melisEngineTree->getPageFather($pageFatherId, 'saved')->current();
		    $pageFatherId = !empty($page)? $page->tree_father_page_id : NULL;
		    
		    if(!empty($pageFatherId)){
		        array_unshift($jsonresult, $pageFatherId);
		    }
		    
		}

		return new JsonModel($jsonresult);
	}
public function getPageIdBreadcrumbAction()
    {
        $idPage = $this->params()->fromRoute('idPage', $this->params()->fromQuery('idPage', ''));
        $idPage = ($idPage == 'root')? -1 : $idPage;
        $includeSelf = $this->params()->fromRoute('includeSelf', $this->params()->fromQuery('includeSelf', ''));
        
    	$melisEngineTree = $this->serviceLocator->get('MelisEngineTree');
		$breadcrumb = $melisEngineTree->getPageBreadcrumb($idPage, 0, true);
		
		$pageFatherId = $idPage;
		$jsonresult = array();
		
		if($includeSelf){
		    array_unshift($jsonresult, $pageFatherId);
		}
		
		while($pageFatherId != NULL){
		    
		    $page = $melisEngineTree->getPageFather($pageFatherId, 'saved')->current();
		    $pageFatherId = !empty($page)? $page->tree_father_page_id : NULL;
		    
		    if(!empty($pageFatherId)){
		        array_unshift($jsonresult, $pageFatherId);
		    }
		    
		}

		return new JsonModel($jsonresult);
	}
public function getPageIdBreadcrumbAction ( ) { $ idPage = $ this -> params ( ) -> fromRoute ( 'idPage' , $ this -> params ( ) -> fromQuery ( 'idPage' , '' ) ) ; $ idPage = ( $ idPage == 'root' ) ? - 1 : $ idPage ; $ includeSelf = $ this -> params ( ) -> fromRoute ( 'includeSelf' , $ this -> params ( ) -> fromQuery ( 'includeSelf' , '' ) ) ; $ melisEngineTree = $ this -> serviceLocator -> get ( 'MelisEngineTree' ) ; $ breadcrumb = $ melisEngineTree -> getPageBreadcrumb ( $ idPage , 0 , true ) ; $ pageFatherId = $ idPage ; $ jsonresult = array ( ) ; if ( $ includeSelf ) { array_unshift ( $ jsonresult , $ pageFatherId ) ; } while ( $ pageFatherId != NULL ) { $ page = $ melisEngineTree -> getPageFather ( $ pageFatherId , 'saved' ) -> current ( ) ; $ pageFatherId = ! empty ( $ page ) ? $ page -> tree_father_page_id : NULL ; if ( ! empty ( $ pageFatherId ) ) { array_unshift ( $ jsonresult , $ pageFatherId ) ; } } return new JsonModel ( $ jsonresult ) ; }
Sends back the pageId breadcrumb

@return \Zend\View\Model\JsonModel
Sends back the pageId breadcrumb