小编cyb*_*tow的帖子

Silex 2:路由中的RegEx

是否可以在Silex 2路由中使用RegEx?

我需要做这样的事情:

$this->get('/(adios|goodbay)', function (Request $request) use ($app) {
    return $app['twig']->render('bye.html.twig', []);
})->bind('bye');
Run Code Online (Sandbox Code Playgroud)

php regex routing silex

2
推荐指数
1
解决办法
1447
查看次数

标签 统计

php ×1

regex ×1

routing ×1

silex ×1