0
我有这样的代码中,匹配部分航线从JSON文件来认为:Silex的触发404错误匹配回调
$this->app->match($routePattern, function(Request $request, \Silex\Application $app) use($routeIdent, $templateConfig) {
//now here i need to check some conditions and,
//in case, trigger 404 error, but without redirect!!!!
if($templateConfig['test'] === true){
//----> TRIGGER 404
}
});
有一种方法来处理呢?