我尝试实现我的网站的404页面的代码。即时通讯使用此代码在我的filters.php,但我也试图在global.phpLaravel误差404页
App::missing(function($exception)
{
return View::make('404');
}
使用结果即时得到这个错误:
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Call to a member function getAction() on a non-object
可能重复的[Laravel 4 - 自定义404错误处理仅fo ④短缺页] [1] [1]:http://stackoverflow.com/questions/24185735/laravel-4-custom-404-error-handling-only-for-missing-pages – 2014-11-25 09:31:24