Is there a function to generate the corresponding URL given the request object?
For example, if the request params values are:
params => array(
'plugin' => 'plugin',
'controller' => 'foo',
'action' => 'bar',
'named' => array(),
'pass' => array()
)
data => array()
query => array(
'key' => 'val'
)
)
Then, generate the URL:
Router::reverse($cakeRequestObject, true).