I\'ve got a parent layout and derived from that child sites.
The parent layout has a navigation, each navigation point represents one child site.
How do i hi
in Silex, I do it like this:
$app->before(function ($request) use ($app) { $app['twig']->addGlobal('active', $request->get("_route")); });
Then in my Twig template file, {{ active }} equals to the current route.
{{ active }}
Simple and easy enough!