Hello, i have a small routing and linking problem, and i can't find a
solution for it. The problematic route looks like this:

Router::connect('/mobile/:controller/:action/*', array('mobile' =>
true));

Works fine so far, the problem are the links, they aren't compiled as
i would expect it, the following call for example:

$html->link('Title', array('plugin' => null, 'controller' => 'news',
'action' => 'view', $id));

creates a link like this:

/news/view/1

but i would expect it to look like this

/mobile/news/view/1

Can anyone point me in the right direction? Do i explicitly have to
tell the link method that it should include the mobile "prefix" (i've
put it in quotes because actually it's not a route prefix, and i don't
want it to be!)?

Regards

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to