Skip to content

Instantly share code, notes, and snippets.

@caingougou
Created November 9, 2010 16:31
Show Gist options
  • Save caingougou/669336 to your computer and use it in GitHub Desktop.
Save caingougou/669336 to your computer and use it in GitHub Desktop.
Kohanaphp的bootstrap.php中关于404的route的设置
<?php
/**
* 写在所有route后面
*/
Route::set('catch_all', '<path>', array('path' => '.+'))
->defaults(array(
'controller' => 'errors',
'action' => '404',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment