Created
November 9, 2010 16:31
-
-
Save caingougou/669336 to your computer and use it in GitHub Desktop.
Kohanaphp的bootstrap.php中关于404的route的设置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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