'routes' => array( // This is the default route. We use a "#" here so that we do not have any // reserved routes. '#' => 'welcome', '404' => 'welcome/404', 'ajax.json' => 'welcome/ajax', ),And it works both [url=http://domain/ajax.json]http://domain/ajax.json[/url] and [url=http://domain/ajax]http://domain/ajax[/url]
'routes' => array( '/' => 'welcome/index', '/some-page/' => 'welcome/somepage', '/ajax.json' => 'welcome/ajax', ),
Route::set('default', '') ->defaults(array( 'controller' => 'home', 'action' => 'index', )); Route::set('contact', 'contact') ->defaults(array( 'controller' => 'contact', 'action' => 'index', ));
'(:any)' => 'welcome/404'
It looks like you're new here. If you want to get involved, click one of these buttons!