Several segments in the URL |
[eluser]überfuzz[/eluser]
[quote author="tobbesanda" date="1253913073"]Hi there folks! I'm building my first (larger) site using CodeIgniter and I think it's really great! But I seem to have a little problem with how I should do to fix my URL's. I have a blog with categories and would like my single page look something like this: http://mysite.com/category/music/the-actual-post How can I do this? Thanks Tobias[/quote] Depends on what functionality you're looking for. CI is set to work like this: www.mysite.com/controller/method/etc/etc You can have a controller called radio. The controller(radio) has a function called music and the function music uses segment(3), segment(4) and so on as a parameters. |
Messages In This Thread |
Several segments in the URL - by El Forum - 09-25-2009, 10:11 AM
Several segments in the URL - by El Forum - 09-25-2009, 10:20 AM
Several segments in the URL - by El Forum - 09-25-2009, 10:26 AM
Several segments in the URL - by El Forum - 09-25-2009, 10:31 AM
Several segments in the URL - by El Forum - 09-25-2009, 10:41 AM
Several segments in the URL - by El Forum - 09-25-2009, 10:59 AM
|