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

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

    To access the Request Object one way that is common is to save it in the Registry.

    1. http://osdir.com/ml/php.zend.framework.mvc/2007-08/msg00158.html
    2. http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/how-access-request-object-customizing-layout-view-3349.html

提交回复
热议问题