CodeIgniter Forums

Full Version: URL in CodeIgniter's application URL?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]dandys997[/eluser]
Hi,
topic may be misleading, so I'll try to explain it. I need to handle URL's as controller's method parameter. For example, I've got:

Code:
class Test extends CI_Controller
{
function redirect($url)
{
redirect(urldecode($url));
}
}

I'm processing $url variable with urlencode() before inserting to the link. But when I try to use that method, I get an error: 404, which is different to CodeIgniter 404 error message.

What can I do to reach the aim? Thanks in advance for help.