Why doesn't Cake merge query-string parameters (/my-page?foo=bar) with
named ones (/my-page/foo:bar) ?
I need to access them differently in the controller:
$this->params->query['foo'];
or
$this->params->named['foo']; (or just $this->params['foo'])
It is true, a browser form submission with method=GET will only
generate ? style requests.
But what if I'd like to generate a good looking request to the action
using named params?
It's sad we can't just say params['foo] and get the variable no matter
how it was passed.
Even in most pathological cases like
/my-page/foo:bar?foo=xyzzy
foo would be intuitively set to xyzzy
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Tuesday, May 22, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment