That was the most simple solution :D But I just did 2 things. Edited dispatcher.php, function dispatch. And edited Router::url to convert / to _..
:D Thanks a lot On Jan 30, 6:25 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 30, 6:23 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > > you might also be able to do a string replace in the > > app/config/bootstrap.php file on the value of $_GET['url'] I think it > > is fired before things go to the dispacher. > > if you want to use a different separator here's the 3 point plan: > > 1) in the bootstrap to change $_GET['url'] such that x-y-z becomes x/y/ > z so that the router works normally. > 2) in your AppHelper url method edit such that it calls the router and > replaces /s with - as appropriate > 3) override your controller redirect method so that it also calls the > router and replaces /s with - before redirecting. > > In that way, and especially if you use array urls, you get the > flexibility of making the url look like you want without the potential > headaches of using string urls and (overly) custom route definitions. > > hth, > > AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
