Hi MI,

thanks for your suggestion. I already tried that and is not working..

If I encode the url then the cake shows page not found error.....if
you noticed, the first link has encoded url.

I also tried using site=urlencode('http://cakephp.org') ... and it is
also giving "page not found" error..

It seems cakephp decode url before separating controller, action, and
parameter...

Please let me know if there is any hack that I can use

Regards,
bingo

On Apr 13, 7:46 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> A quick fix is to use parameters:
>
> $html->link('Tag CakePHP website', 'controller/action?site=' .
> urlencode('http://www.cakephp.org'));
>
> And then on your action:
>
> function action() {
>         $url = $this->params['url']['site'];
>
> }
>
> -MI
>
> ---------------------------------------------------------------------------
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> blog:http://www.MarianoIglesias.com.ar
>
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre
> de bingo
> Enviado el: Viernes, 13 de Abril de 2007 08:33 p.m.
> Para: Cake PHP
> Asunto: unable to pass url as a parameter
>
> I want to allow users to tag any outside website in my application.
> For this, I am sending the url of the website as a parameter to my
> controller/action
>
> so for 
> instance,http://localhost/mysite/controller/action/http%3A%2F%2Fcakephp.org%2F


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