Is there a way in Silex to define multiple routes for a single request. I need to define two routes for one page (both routes are taken on one page). Here is my current controller:
$app->get('/digital-agency', function() use ($app) { return $app['twig']->render('digital_agency.html', $data); });
It works when I duplicate a function as follows:
$app->get('/digital-agency', function() use ($app) { return $app['twig']->render('digital_agency.html', $data); }); $app->get('/agencia-digital', function() use ($app) { return $app['twig']->render('digital_agency.html', $data); });
So, any idea of ββa cleaner way to do this?
php symfony silex
arielcr
source share