Codeigniter - Access Models And Database on Routing
问题 I'm Planning to make a project in codeigniter 3.0.3 and I want to use routing like below. 1) . www.mydomain.com/categoryNamehere 2) . www.mydomain.com/postNameHere I have a separate table in my database to keep category names with their unique id's. What I want is when a user click on a link like www.mydomain.com/xxxxx 1.first check on category table (xxxxx) 2. if no match send it (xxxxx) to post controller. How can I implement this on Codeigniter 3.0.3 ? I tried to access my models in config