How to get the view manager from the service locator in Zend Framework 2 Mar 11, 2015 by Marcelo Jacobus This is how you can get the view helper manager from the service locator/service manager. <?php $viewHelperManager = $serviceManager->get('ViewHelperManager'); For the form element manager: <?php $formElementManager = $serviceManager->get('FormElementManager'); Source.