Zend Framework - need to access a GET parameter from a view

后端 未结 5 2793
梦谈多话
梦谈多话 2021-02-20 16:00

I am using the Zend framework and what I need is to construct a url in my view. Normally in regular php code I\'d just grab the GET Variable by using the global $_GET. However w

5条回答
  •  攒了一身酷
    2021-02-20 16:39

    i am using Zend Framework v1.11 and i am doing like this

    In Controller

    $this->view->request = $this->_request;
    

    then in View you can access any Request param like this

    request->fullname ?>

提交回复
热议问题