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