我知道,處理404錯誤與laravel 4是在應用寫入/啓動/ global.php:Laravel 4 - 處理404錯誤
App::missing(function($exception)
{
return Redirect::route('404_Error');
});
但實際上我想利用這條航線:
Route::get('error', array(
'as' => '404_Error',
'uses' => '[email protected]'
));
但留在相同的URL。
例子:
我的URL現在是localhost:8000/users/blat
(404錯誤)。我不想重定向到錯誤頁面。我想在此URL處看到[email protected]
。
非常感謝。
我不敢相信這個問題沒有答案。是否真的只能用簡單的視圖而不是控制器操作來回應? – Nick