Wednesday, December 28, 2011

get current url as array

am I missing sth or is there no url() method etc for returning the
current url as array?
I only know this way:

$urlParams = Router::getParams(true);
$urlParams = am($urlParams, $urlParams['named'],
$urlParams['pass']);
unset($urlParams['named']);
unset($urlParams['pass']);

but it seems a little bit like overhead...
does anyone know how to do that easier?
maybe we should introduce Router::urlAsArray()
with default NULL => return current ?

--
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

No comments: