Zend framework 我怎样才能得到“的”呢;转换为;Zend Framework MVC的操作名称?

Zend framework 我怎样才能得到“的”呢;转换为;Zend Framework MVC的操作名称?,zend-framework,action,Zend Framework,Action,我知道updateprofile picture转换为updateProfilePictureAction()函数。 动作参数的转换在哪里进行? 我想得到updateProfilePicture作为一个值,我可以编写这个函数,但它肯定已经在库中的某个地方了。 使用$this->_getParam('action')时,它返回更新配置文件图片 /** * Auto call scripts * @see Zend_Controller_Action::postDispa

我知道
updateprofile picture
转换为
updateProfilePictureAction()
函数。 动作参数的转换在哪里进行? 我想得到
updateProfilePicture
作为一个值,我可以编写这个函数,但它肯定已经在库中的某个地方了。 使用
$this->_getParam('action')
时,它返回
更新配置文件图片

    /**
     * Auto call scripts
     * @see Zend_Controller_Action::postDispatch()
     */
    public function postDispatch(){
        $action = $this->_getParam('action',false);
        $method = $action.'Scripts';
        if ($action && method_exists($this, $method))
            $this->$method();
    }
这适用于indexAction-IndexScript,但不适用于updateProfilePictureScripts(查找更新配置文件图片描述)

$this->getFrontController()->getDispatcher()->formatActionName($this->_getParam('action',null));
这件事发生在英国

/Zend/Controller/Dispatcher/Abstract.php

带上它

$this->getFrontController()->getDispatcher()->formatActionName($this->_getParam('action',null));
这件事发生在英国

/Zend/Controller/Dispatcher/Abstract.php


查看Zend_Filter_拐点:

查看Zend_Filter_拐点:

对不起,我实际上在postDispatch中检查了这一点,请参阅edit当您执行此操作时,是否可以将此值存储在某个位置,然后在后期调度中使用它?我的问题是
操作参数的转换在哪里进行?
-在zend framework中即是。我可以把事情弄得一团糟,让它工作起来,但我希望尽可能多地重用代码possible@emaillenin,很酷,我如何从控制器调用该函数?明白了
$this->getFrontController()->getDispatcher()->formatActionName($this->_getParam('action',null))
对不起,我实际上是在后期调度中检查的,请参阅edit当您执行此操作时,是否可以将此值存储在某个位置,然后在后期调度中使用它?我的问题是
操作参数的转换在哪里进行?
-在zend framework中即是。我可以把事情弄得一团糟,让它工作起来,但我希望尽可能多地重用代码possible@emaillenin,酷,我如何从控制器调用该函数?明白了
$this->getFrontController()->getDispatcher()->formatActionName($this->getParam('action',null))