Saturday, July 27, 2013

How to diablse auto url encoding in CakePHP ?


Hi,
I want to redirect my page to index page passing 2 named variable.

$this->redirect(array('action' => 'index', 'id:3/name:hanif'));


After execution it redirect to this page /index/id%3A3%2Fname%3Ahanif

and it show this error

The requested URL /crmacl/calls/index/id:3/name:hanif was not found on this server.

If I replace %2F by / then it works fine.


That means it will work if I can prevent auto url encoding.


Any idea how to disable auto url encoding ?



Thanks
Hanif

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: