Welcome Guest, Not a member yet? Register   Sign In
Query Strings How to send arguments
#1

[eluser]Unknown[/eluser]
example.com/index.php/products/shoes/sandals/123

Your function will be passed URI segments 3 and 4 ("sandals" and "123"):
<?php
class Products extends CI_Controller {

public function shoes($sandals, $id)
{
echo $sandals;
echo $id;
}
}
?>
How to call method with arguments
example.com/index.php?c=products&m=shoes&????/sandals/123
how to name to arguments
Thanks
#2

[eluser]Sudz[/eluser]
From where you want to call and which function.
Explain your problem correctly?
#3

[eluser]Unknown[/eluser]
I do not have mod_rewrite because it run on a server iss
i force to use Query Strings
#4

[eluser]Nick_MyShuitings[/eluser]
Unless I am mistaken you don't need modrewrite for anything except removing the index.php from the url... the rest is what CI does. so without mod rewrite it would be:

yourdomain.com/index.php/useit/the/same/exact/way

I just turned off modrewrite on my server, and the only thing it effects is my .htaccess trying to remove the index.php.




Theme © iAndrew 2016 - Forum software by © MyBB