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
If you need to access a GET parameter from a view, i think you're doing it the wrong way.
I suggest that you set up a route with all your parameters, and then use $this->url
from your view to render a valid and correct url.
Fore som more info, check out the following blog post (no, i'm not the author): http://naneau.nl/2007/07/08/use-the-url-view-helper-please/
Edit:
If you want to be 'lazy', you can set a view parameter from your controller by doing $this->view->param = $this->_getParam('param')
. You can then access param
from your view by doing echo $this->param;
. However, i do not recommend this.