Welcome Guest, Not a member yet? Register   Sign In
Passing a web address to a controller in the URI
#6

[eluser]Phil Sturgeon[/eluser]
Option A
A crazy un-tested theoretical solution.

Code:
fucntion add_bookmark(){
$url_parts =& func_get_params();
$url = implode('/', $url_parts);
}

CodeIgniter explodes URL's on each /. This will take anything after the method name and join it together.

Option B
A boring but clean and known-tested-working solution.

Enable query strings and just use $this->input->get();


Messages In This Thread
Passing a web address to a controller in the URI - by El Forum - 04-04-2009, 04:44 PM
Passing a web address to a controller in the URI - by El Forum - 04-04-2009, 05:24 PM
Passing a web address to a controller in the URI - by El Forum - 04-05-2009, 02:22 AM
Passing a web address to a controller in the URI - by El Forum - 04-05-2009, 08:17 PM
Passing a web address to a controller in the URI - by El Forum - 04-19-2009, 11:13 PM
Passing a web address to a controller in the URI - by El Forum - 04-20-2009, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB