On Wed, Jul 14, 2010 at 3:24 PM, David Mintz <[email protected]> wrote: > > > On Wed, Jul 14, 2010 at 3:11 PM, Andrew Ballard <[email protected]> wrote: >> >> On Wed, Jul 14, 2010 at 2:58 PM, David Mintz <[email protected]> wrote: >> > >> > Having become addicted to pretty URLs, I am finding the ugly kind you >> > get >> > following submission of a GET form rather... ugly. Just wondering if >> > anyone >> > has any ideas about this, before I consider writing some Javascript to >> > suppress the default event and location.href = example.org/param1/value1 >> > etc >> > >> > -- >> > Support real health care reform: >> > http://phimg.org/ >> > >> > -- >> > David Mintz >> > http://davidmintz.org/ >> > >> > >> > >> >> That would be pretty simple to do. If you pursue it, you would need to >> make sure your PHP code still correctly handles the page with the >> regular GET parameters in case someone visiting your site has >> Javascript blocked/disabled. In other words, the page would need to >> respond the same to a request for either of these resources: >> >> example.org/?param1=value1 >> >> example.org/param1/value1 >> > > > ZF handles that for us transparently, doesn't it? That is, in a controller > $this->_getParam('param1') will return 'value1' either way. > > > -- > Support real health care reform: > http://phimg.org/ > > -- > David Mintz > http://davidmintz.org/ > > >
Yes, I guess it does. :-) I'm so used to using getUserParams() and not using query strings that I had forgotten that getParams() includes the regular request parameters as well. Andrew
