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
}
});
有一種方法來處理呢?