zendframework / ZFTool

Utility module for maintaining modular Zend Framework 2 applications.
187 stars 101 forks source link

[#65] Use CamelCaseToDash filter for building properly path to phtml script #70

Closed ne2da1 closed 11 years ago

ne2da1 commented 11 years ago

There is following string of code in moduleAction and controllerAction in CreateController class: $viewfolder = strtolower($name).

The strtolower($name) is not the complete working way, because the path looking for phtml script is $path/module/$name/view/name-of-the-module (comes here from NameOfTheModule). So we'll have exception during loading the view phtml script.

I've changed code a little bit by adding CamelCaseToDash filter and using it for building properly path to phtml script