if (preg_match("/\\\\/", $controller)) { throw new HttpException(404, 'controller not exists:' . $controller); }