Welcome Guest, Not a member yet? Register   Sign In
How to pass $_GET parameters when accessing CI via CLI?
#1

[eluser]taewoo[/eluser]
Based on the article on accessing CI via command line, I get that URIs work fine.. but what if I want to pass a GET parameter? Something like:

Quote:php index.php some_controller/some_method?q=some_query

So that in the controller
Quote:class some_controller extends ci_controller{

function some_method()
{
$q = $this->input->get("q");
// do something with $q
}

}


How do you achieve this?




Theme © iAndrew 2016 - Forum software by © MyBB