You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(...this is in some way related to the discussion about the helper factory)
Since you are using zend-view (which includes its own helper), we could just use the zend-view BasePath view helper and just call setBasePath on it without having a custom view helper which basically does the same.
i tried it and it works just fine (zend-servicemanager3), see following code fragments:
self-comment b4 i forget
the approach used above works but will instantiate the plugin manager and the zend-view base-path helper. Maybe a better solution is to just define the base-path plugin factory to a custom factory extendend from zend-view (which is simply the InvokableFactory) and find a way to inject the detected base url/path in there. Since a factory has no knowledge of the request and therefore of its attributes, maybe we can alter the application configuration via the container so that the detected value (if not empty) can be reflected into a generic 'base_path' or 'base_url' key.
(...this is in some way related to the discussion about the helper factory)
Since you are using zend-view (which includes its own helper), we could just use the zend-view BasePath view helper and just call setBasePath on it without having a custom view helper which basically does the same.
i tried it and it works just fine (zend-servicemanager3), see following code fragments:
you can close the issue of course since it's not an issue :-)
kind regards
The text was updated successfully, but these errors were encountered: