博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
controller------forward——————解析!
阅读量:4200 次
发布时间:2019-05-26

本文共 1444 字,大约阅读时间需要 4 分钟。

1

$this->_forward('edit');

 

 

2

 protected function _forward($action, $controller = null, $module = null, array $params = null)

    {

        $this->_getSession()->setIsUrlNotice($this->getFlag('', self::FLAG_IS_URLS_CHECKED));

        return parent::_forward($action, $controller, $module, $params);

    }

 

 

3

 protected function _forward($action, $controller = null, $module = null, array $params = null)

    {

        $request = $this->getRequest();

 

        $request->initForward();

 

        if (!is_null($params)) {

            $request->setParams($params);

        }

 

        if (!is_null($controller)) {

            $request->setControllerName($controller);

 

            // Module should only be reset if controller has been specified

            if (!is_null($module)) {

                $request->setModuleName($module);

            }

        }

 

        $request->setActionName($action)

            ->setDispatched(false);

    }

4

 /**

     * Collect properties changed by _forward in protected storage

     * before _forward was called first time.

     *

     * @return Mage_Core_Controller_Varien_Action

     */

    public function initForward()

    {

        if (empty($this->_beforeForwardInfo)) {

            $this->_beforeForwardInfo = array(

                'params' => $this->getParams(),

                'action_name' => $this->getActionName(),

                'controller_name' => $this->getControllerName(),

                'module_name' => $this->getModuleName()

            );

        }

 

        return $this;

    }

 

5

/**

     * Set flag indicating whether or not request has been dispatched

     *

     * @param boolean $flag

     * @return Zend_Controller_Request_Abstract

     */

    public function setDispatched($flag = true)

    {

        $this->_dispatched = $flag ? true : false;

        return $this;

    }

 

转载地址:http://erdli.baihongyu.com/

你可能感兴趣的文章
自动化测试框架指南
查看>>
利用 STAF 实现程序更新包的自动部署测试
查看>>
软件安全性测试转载自小龙虾博客
查看>>
周末参加“北京干部管理职业技术学院”关于高职课程改革的专家讨论会
查看>>
软件测试框架介绍
查看>>
软件自动化测试框架的发展
查看>>
实现haproxy+LNMT负载均衡架构
查看>>
论文浅尝 | 通过共享表示和结构化预测进行事件和事件时序关系的联合抽取
查看>>
论文浅尝 | 融合多粒度信息和外部语言知识的中文关系抽取
查看>>
论文浅尝 | GMNN: Graph Markov Neural Networks
查看>>
应用实践 | 网络智能运维下的知识图谱
查看>>
应用实践 | 南方科技大学研发基于新型冠状病毒知识图谱模式挖掘系统
查看>>
征稿 | 2020年全国知识图谱与语义计算大会
查看>>
论文浅尝 - CIKM2020 | Relation Reflection Entity Alignment
查看>>
论文浅尝 - WWW2020 | 通过对抗学习从用户—项目交互数据中挖掘隐含的实体偏好来用于知识图谱补全任务...
查看>>
论文浅尝 - AAAI2021 | 从历史中学习:利用时间感知拷贝生成网络建模时态知识图谱...
查看>>
论文浅尝 - EMNLP | 通过元强化学习实现少样本复杂知识库问答
查看>>
论文浅尝 | 利用跨内和跨间信息的预训练实体关系编码器
查看>>
论文浅尝 | S3QLRDF: 用于大规模RDF数据分布式SPARQL查询的关系分割架构
查看>>
论文浅尝 - ICLR2021 | BERTology 遇上生物学:在蛋白质语言模型中解释注意力
查看>>