Zend Framework 2 Service in View Helper
问题 I need to write a view helper that gets a service and do something with it. I successfully implemented the view helper to have access to the service locator. The problem is that the service I want to get is not being found through the service locator when the __invoke method is called. The view helper code: <?php namespace Application\View\Helper; use Zend\View\Helper\AbstractHelper, Zend\ServiceManager\ServiceLocatorAwareInterface, Application\Model; class LoggedCustomer extends