Hot answers tagged

5 votes

Resource Routing on mutiple URLs

You can do this without a callback function: $config['resource_router'] = array( 'posts' => 'templates/index', 'posts/:category_url_title' => 'templates/cat_entries', 'posts/:...
  • 4,002
2 votes

Resource router hijacking all template groups

:url_title will match any string that could be a url title as it is converted to ([^/]+) [1] To stop this rule matching template groups, you can check that the match is for a real entry in the ...
  • 5,234
1 vote

Template Routes Error

I was just struggling with this problem, everything I was doing was resulting in the same error. I fortunately just managed to fix it though, problem is I'm not 100% sure why it happened I just know ...

Only top scored, non community-wiki answers of a minimum length are eligible