[Flow] Flow 2.1: subpackagekey to view path transformation incorrect?

Kevin Fischer Fischer at etg24.de
Mon Jan 20 10:44:22 CET 2014


Hello guys!

I've just encountered a problem that is really weird looking to me.
After creating my project's first subpackage and calling one of its controllers, I'm only receiving the following error:
> #1225709595: Template could not be loaded.
> I tried "resource://Foo.Bar/Private/Templates/maintenance/Administration/NewBase.html"

The URI I wanted to access was:
>/maintenance/administration/newbase


Now I've tried around a bit and noticed, that the SubpackageKey is plainly copied into the view's path/filename (TemplateView.php::445), e.g. accessing:
>/maiNtenAnCe/administration/newbase
will in turn try to access
>"resource://Foo.Bar/Private/Templates/maiNtenAnCe/Administration/NewBase.html"

Shouldn't there be some kind of transformation like with the controller or action names, that would turn "/maiNtenAnCe" in the URL into "/Maintenance" in the view path automatically?
Even the UriBuilder is transforming the $subPackageKey to lowercase (UriBuilder.php::308), which in turn is used by the ActionViewHelpers and thus makes linking to/within subpackages impossible.

Am I missing something here or is this a bug?


Appreciating any help,
cerlestes (aka. Kevin)


More information about the Flow mailing list