Answer the question
In order to leave comments, you need to log in
Routing for multilingualism in Slim Framework 3. How to implement?
$app->group('/{lang}', function() use($app){
$app->group('/backend', function() use ($app){
$app->get('', 'BackendController:index');
$app->get('/pages', 'BackendController:pages');
$app->get('/newPage', 'BackendController:newPage');
$app->post('/newPage', 'BackendController:newPageAdd');
});
$app->get('', 'SiteController:index');
});
Answer the question
In order to leave comments, you need to log in
condition if {lang} is the one you don't want to display - $app->group('/{lang}' is not needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question