ZF3 assumes that the folder with the module's controllers has to be named Controller
#7744
Comments
I also find a bit uncomfortable the following thing. In ZF2, there shouldn't have been an exact correspondence between the path to the controller and the resulting view script path. I mean the following: if a path to a specific controller is |
Something is wrong with your code for sure it is not the zend obligadno any kind of nameclatura pattern ... My folder with the controllers is called Services and works perfect on zf3 heheh |
I'm not sure it's my fault. :-) if you look at |
Controller
@ddodz can this be moved to |
@ddodz Both zf2 and zf3 does not support this transformation. But there is a simple way to perform this by yourself. You can attach an event listener, that will inject template following your name transformation rules before |
For me it will be even better to store controller views within |
After migrating to ZF3 from ZF2 found out an issue. It seems internally, ZF3 assumes that the folder with the module's controllers has to be named
Controller
(singular). If that's not the case, like I namedControllers
(plural), it lets the namespaceYourModule/Controllers/ControllersName/
to be transferred to the pathyour-module/controllers/controllers-name/
instead ofyour-module/controllers-name
(then attaching the action). All this happens in theInjectTemplateListener
'smapController()
method. I guess it's a bug because things worked for ZF2 without a problem.The text was updated successfully, but these errors were encountered: