CRUDlex\ControllerProvider::setupTemplates PHP Method

setupTemplates() protected method

Setups the templates.
protected setupTemplates ( Silex\Application $app )
$app Silex\Application the Application instance of the Silex application
    protected function setupTemplates(Application $app)
    {
        if ($app->offsetExists('twig.loader.filesystem')) {
            $app['twig.loader.filesystem']->addPath(__DIR__ . '/../views/', 'crud');
        }
        if (!$app->offsetExists('crud.layout')) {
            $app['crud.layout'] = '@crud/layout.twig';
        }
    }