Try using '/' as the url parameter, not ''.

On my test app:
Router::url('', true) =>  "/cake1.2/posts"
Router::url('/', true) => "http://localhost/cake1.2/";

I admit this is surprising - I understand the "posts" being included
(as that was the action I was testing), but it still should have given
an absolute url.


On Nov 2, 5:27 am, bingo <[EMAIL PROTECTED]> wrote:
> hi,
>
> I am trying to get absolute url location of a page. I tried using
> Router::url("", true) but that always returns me a relative url. On
> debugging, it seems although Router returns absolute url, somewhere
> its getting converted to relative url. I am calling Router class
> within my helper code. Hopefully, someone can help me with this.
>
> Regards,
> Ritesh


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