Thanks everyone. I already tried Router::parse, but it doesn't show me a
"prefix".
In my case, I have this array for my url : array('admin' => TRUE, 'action'
=> 'edit', $picture['Picture']['id'])
If I use it with $this->Html->link, I can see that the url : is
http://127.0.0.1/testcake/admin/pictures/edit/23
So that's correct and what I would expect.
Now if I do a var_dump(Router::parse(Router::url($the_array_url)) it gives
me this :
*array*
'controller' => string 'testcake' *(length=8)*
'action' => string 'admin' *(length=5)*
'named' =>
*array*
*empty*
'pass' =>
*array*
0 => string 'pictures' *(length=8)*
1 => string 'edit' *(length=4)*
2 => string '23' *(length=2)*
'plugin' => null
I guess the usage of Router::url is not adequate. But Router::parse requires
an urlString. How then to get an urlString from my url array ?
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php