Hello Rodrigo,

I had a similar problem with urls and have asked for advice, but did not
get an answer at that time. So I came up with a partitial solution.
I have encoded the url into a hex string, which has not problems
with the parameter decoding of cake.

      function __hex2asc($temp) {
           $data = '';
           $len = strlen($temp);
           for ($i=0;$i<$len;$i+=2) $data.=chr(hexdec(substr($temp,$i,2)));
           return $data;
        }

      function show($url)
      {
        $url = $this->__hex2asc($url);
        // debug($url);
        $this->set('data', $this->Address->findAll($url));
      }

Siegfried

2006/10/13, Rodrigo Tassinari <[EMAIL PROTECTED]>:
>
> Hello all,
>
> I'm writing a cakephp aplication to manage my bookmarks and share them
> with others, like delicious, etc. I'm almost done, but I'm having
> trouble with urlencoded params on my URLs.
>
> In a couple of actions (of different controllers) I need to be able to
> pass a website's url and title as parameters to the actions, and only
> urldecode them as I place them on my view. However, cakephp intercepts
> those parameters and urldecodes them before they get to the action,
> giving me 404 errors.
>
> Is there any way I can setup cakephp to not urldecode de params of
> specifc controllers/actions?
>
> Thanks in advance,
> Rodrigo.
>
>
> >
>


-- 
Siegfried Hirsch
http://www.rss-blogger.de / http://seconds11.com
http://www.newsbee.de NewsBee 2.0 - customized RSS solutions
https://www.openbc.com/net/sxsw/ - Forum zum Thema Social Software

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

Reply via email to