zendframework / ZFTool

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

zf create Action with "-" on action name #99

Open webjoaoneto opened 9 years ago

webjoaoneto commented 9 years ago

When i create a new action with "-" on the name, ZfTool createas a method name with "-", and this raise a sintax error on PHP.

How to proceed:

zf create action my-action Controller Module

Create:

class Controller

public function my-actionAction() { //raise a sintaxError - Unexpected '-' }

On: ZFTool - Zend Framework 2 command line Tool The application in this folder is using Zend Framework 2.3.3