5
votes
Accepted
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
Accepted
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
Accepted
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 ...
- 601
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
routing × 20templates × 5
url × 5
template-routes × 4
stash × 2
codeigniter × 2
subdomain × 2
resource-router × 2
ee2 × 1
channel-entries × 1
php × 1
module × 1
htaccess × 1
extension × 1
url-title × 1
multi-language × 1
.htaccess × 1
migration × 1
rss × 1
mod-rewrite × 1
versioning × 1