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

后端 未结 5 2669
梦谈多话
梦谈多话 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:51

    You can pass it in from a controller: $this->view->page = $this->_getParam('page');.

    Footnote: I agree with @alexn.

提交回复
热议问题