controller issue |
[eluser]Arun Joshi[/eluser]
I have a controller for home. through this I can access my site as www.mysite.com And my problem is, I have many pages (about 50). I need my url as www.mysite.com/a , www.mysite.com/b , www.mysite.com/c etc. Now I forced to create separate controllers for each pages. Can I create this site architecture through one controller( here home controller)???
[eluser]WanWizard[/eluser]
No, you can handle this using routes: Code: $route['([a-z])'] = "home/$1";
[eluser]Arun Joshi[/eluser]
Thank u WanWizard.... I hadnt read the uri routing guide properly... ;-) |
Welcome Guest, Not a member yet? Register Sign In |