Zend Framework:行动不存在

use*_*948 1 php zend-framework zend-form

这是我的表单生成器功能:

private function getAddArtistForm() {
  $form = new Zend_Form();
  $form->setAction("saveArtist");
  $form->setMethod("post");
  $form->setName("addartist");
  ...
}
public function newAction()
{
  $form = $this->getAddArtistForm();
  $this->view->form = $form;

}
Run Code Online (Sandbox Code Playgroud)

我还有一个名为的行动saveArtistAction:

public function saveArtistAction() {
...
}
Run Code Online (Sandbox Code Playgroud)

但是当我提交表单时,我收到以下错误:

Message: Action "saveartist" does not exist and was not trapped in __call() 
Run Code Online (Sandbox Code Playgroud)

请求参数:

array (
  'controller' => 'artist',
  'action' => 'saveartist',
  'module' => 'default',
)  
Run Code Online (Sandbox Code Playgroud)

zer*_*kms 5

如果action使用连字符指定该怎么办:

'action' => 'save-artist',
Run Code Online (Sandbox Code Playgroud)