On 10 mayo, 02:54, "Erich C. Beyrent" <[EMAIL PROTECTED]>
wrote:
> I am sorry I was not clear - I don't need to construct the URL from Cake
> - I need Cake to HANDLE this URL.

In what way (exactly) does cake /not/ handle that url.

In 1.2 you may be able to write a route for it, not so in 1.1 though.

You could use .htaccess to do it, or you could "hijack" the url in
your bootstrap file and reaarrange it. If the urls are always of that
form (and off the root) then you could, for example, set up the
controller for your root to check for these get params and act
appropriately.

e.g.
1) copy the pages controller to your app controllers folder (this is
the default controller that handles the url "/")
2) add beforeFilter logic to check for these get params
3) redirect to the true url
4) die.

For step 2 look at pr ($this->params); with the url you are speaking
about - you'll see everything is in there ready for your to pick it
out.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to