You might need to do: 1) URL encode your category names Or 2) refactor to allow category name slugs for URL access to avoid use of special characters
Cheers Graham On 10/11/2009, at 11:56 AM, "ashok.b" <[email protected]> wrote: > > Hi, I'm trying to pass values having an ampersand... like > http://localhost/cake/cat/TV & Music where "TV & Music" is the > category name and the /cat is actually passed to /Categories/display/ > TV & Music. > > I added the following in routes.php to achieve the above: > Router::connect('/cat/*', array('controller' => 'Categories', > 'action' => 'display')); > > For all category names without &, this works fine. But categories > having & fails. In the above example, query happens only for "TV" and > not for "TV & Music". Can some one help me with this? > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
