anyway to use this routes system |
[eluser]7amza[/eluser]
hello i want to use this system of url : Module?Select=ControllerName&View=MethodName¶ms1=value¶ms2=value and from the controller if i want get the controller i can get the value like that : $this->uri->segment('1'); // provides : Controller or $_GET['Select'] ; so i know to make routes but how to call them? thanx
[eluser]pickupman[/eluser]
That looks like a nightmare. There is a reason why the CI team has created the uri structure because it is cleaner. I don't seen reason where the same url couldn't be using the standard uri segments. What happens if a user alters one of variables like View=.
[eluser]7amza[/eluser]
i need to know how can i do that ! not all what i ask about i need to do it ! but i have to know in order to improve my skills . so can anyone tell me the method to do that?
[eluser]danmontgomery[/eluser]
How would getting someone else to do it for you improve your skills? You would have to mix segments and query strings to perform your own routing: http://www.askaboutphp.com/58/codeignite...rings.html
[eluser]7amza[/eluser]
noctrum , none was burn learned! i have to ask in order to get the information there is a problem in what i did? im sorry so if my topic made you mad ..
[eluser]danmontgomery[/eluser]
No, not mad... Try the link I pasted. Try some things yourself, come back and tell us what you've found. You'll get a lot more help with "I've tried this and it's not quite working" than "someone do this for me"
[eluser]7amza[/eluser]
i will keep your advice believe me .. never i'll post a problem before i tried to solve it my self and do my efforts . and now i did a test and it wasn't work with me the method you given me . Code: //config/config.php i got the error : The page you requested was not found. |
Welcome Guest, Not a member yet? Register Sign In |