public function breadcrumbsAction() 
	{
	    $default = 'dashboard';
	    $id = $this->getRequest()->getQuery('id', $default);
	    $pos = strpos($id, '/');
	    $id = false !== $pos ? substr($id, 0, $pos) : $id;
        $view = $this->getServiceLocator()->get('Zend\View\Renderer\PhpRenderer');
        $navigation = $view->navigation('navigation');
        $container = $navigation->getContainer();
        $page = $container->findOneBy('fragment', $id);
        $page = null === $page ? $container->findOneBy('fragment', $default) : $page;
        $page->setActive(true);
        
        $viewModel = new ViewModel(array(
            'breadcrumbs' => $navigation->breadcrumbs()
        		->setPartial('breadcrumbs')->setRenderInvisible(true)->setMinDepth(0)
        ));
        $viewModel->setTerminal(true);
        
        return $viewModel;
	}
public function breadcrumbsAction() 
	{
	    $default = 'dashboard';
	    $id = $this->getRequest()->getQuery('id', $default);
	    $pos = strpos($id, '/');
	    $id = false !== $pos ? substr($id, 0, $pos) : $id;
        $view = $this->getServiceLocator()->get('Zend\View\Renderer\PhpRenderer');
        $navigation = $view->navigation('navigation');
        $container = $navigation->getContainer();
        $page = $container->findOneBy('fragment', $id);
        $page = null === $page ? $container->findOneBy('fragment', $default) : $page;
        $page->setActive(true);
        
        $viewModel = new ViewModel(array(
            'breadcrumbs' => $navigation->breadcrumbs()
        		->setPartial('breadcrumbs')->setRenderInvisible(true)->setMinDepth(0)
        ));
        $viewModel->setTerminal(true);
        
        return $viewModel;
	}
public function breadcrumbsAction ( ) { $ default = 'dashboard' ; $ id = $ this -> getRequest ( ) -> getQuery ( 'id' , $ default ) ; $ pos = strpos ( $ id , '/' ) ; $ id = false !== $ pos ? substr ( $ id , 0 , $ pos ) : $ id ; $ view = $ this -> getServiceLocator ( ) -> get ( 'Zend\View\Renderer\PhpRenderer' ) ; $ navigation = $ view -> navigation ( 'navigation' ) ; $ container = $ navigation -> getContainer ( ) ; $ page = $ container -> findOneBy ( 'fragment' , $ id ) ; $ page = null === $ page ? $ container -> findOneBy ( 'fragment' , $ default ) : $ page ; $ page -> setActive ( true ) ; $ viewModel = new ViewModel ( array ( 'breadcrumbs' => $ navigation -> breadcrumbs ( ) -> setPartial ( 'breadcrumbs' ) -> setRenderInvisible ( true ) -> setMinDepth ( 0 ) ) ) ; $ viewModel -> setTerminal ( true ) ; return $ viewModel ; }
Web service per la restituzione di un breadcrumbs in base ad un id

@return ViewModel
Web service per la restituzione di un breadcrumbs in base ad un id