[eluser]Unknown[/eluser]
Hi all,
Recently was in search for a program for my first project; and finally opted to go with CodeIgniter. For the first time, I am using MVC Framework.
I am making some kind of directory. Just started working on it. I have some data in my database tables. I have already got the same on the site through Model-Controller-View. and then linked the individual row data to a seperate view page with the help of array.
Now my concern is, if i see my current sites address bar for individual data view page, its as under:
Code:
http://www.domain.com/index.php/page/get/1
Here, I know about the various contents of the above link.
I am confused, what if I call the same data from a different controller page as well (eg.search result, or categories, sub-categories, etc.)
Is there some way in URI Routing, that I can just have the
id part for all the contents links; what I mean is as under:
Code:
http://www.domain.com/detail/1
I may have some thousands of entries in my database, each under different categories. Some may even be under two or more categoreis. So just wanted a universal looking link for all the content for this table data.
Any help or advice is appreciated.
With Regards
Jayesh.