Details
Description
Currently, the zf command (which utilizes Zend_Tool_Project) cannot handle action names with hyphens:
%> zf create project myproject myproject
%> cd myproject
%> zf create controller mycontroller
%> zf create action my-hyphenated-action mycontroller
%> cat application/controllers/MycontrollerController.php
...
public function my-hyphenated-actionAction()
{
...
}
...
For the time being, to get around this issue (while working with the default router), remove the hyphens and capitalize the first letter of section of the action name after the first:
zf create action my-hyphenated-action mycontroller
becomes:
zf create action myHyphenatedAction mycontroller
If I digit
zf create action myHyphenatedAction mycontroller
then I have a problem with view :
myproject/application/views/scripts/mycontroller/myHyphenatedAction.phtml