Thanks for your answer!
Actually my goal are to output an ViewModel with the view content and the
breadcrumbs, without layout (when XmlHttpRequest).
I use $view->setTerminal($this->getRequest()->isXmlHttpRequest()) to render
only the view to work with pushState HTML5 when is available. And i need the
breadcrumbs in this case to be include to the content. Is why i asked that
question.
And when setTerminal==0 (normal request) the breadcrumbs come from the
layout.
Ok i will see to inject ViewHelperManager in my controller, but can you tell
me please what is the difference with that way? (i found it after i ask)
...
// Get View Helper Manager in action controller
$viewHelperManager = $this->getServiceLocator()->get('viewHelperManager');
// Get navigation
$navigation = $viewHelperManager->get('navigation');
...
Thanks in advance,
Michael
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Retrieve-navigation-in-Controller-tp4660639p4660642.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]