have a problem with routing |
[eluser]Deathcode[/eluser]
Hi.... I have a problem with routing. I hope anyone of you can help me to solve this problem.... Let's say, i have a url like this : http://localhost/goofeel_temp/articles/g...s/tutorial Note : "articles" is the name of my controller, "get_articles" is my_function, and "tutorial" is my first parameter. And i want to change my url like : http://localhost/goofeel_temp/tutorial So i create a route like this : Code: $route['articles/(:any)'] = 'articles/get_articles/$1'; And it's working. But the problem occur when i have a new function that makes my url look like this : http://localhost/goofeel_temp/articles/g...pagination Note : "articles" is the name of my controller, "get_detail_articles" is my_function, "tutorial" is my first parameter and "how-to-create-pagination" is my second parameter. And i want to change my url into something like this : http://localhost/goofeel_temp/tutorial/h...pagination What should i do to create a "clean" url like that??? thanks before....
|
Welcome Guest, Not a member yet? Register Sign In |