Configuration of controller |
[eluser]Nukede[/eluser]
hi all, I need some help with controller routing What I need: (for example) Quote:mysite.com/But now, it's only works like this Quote:mysite.com/ this is my .htaccess Code: Options +FollowSymLinks
[eluser]Aken[/eluser]
In config/routes.php: Code: $route['(news|articles)'] = 'my_controller/$1'; http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]Nukede[/eluser]
Research Assistant, thx! It's works, but if I will need more links, I will have to do it through routing?
[eluser]Aken[/eluser]
Yes. Or you could create individual controllers for each section, which may prove to be more beneficial. |
Welcome Guest, Not a member yet? Register Sign In |