public function bootTwig($config){
        $app    = $this->app;
        $view   = $app->view;

        $view->parserOptions = $config;
        $view->parserExtensions = array(
            new \Slim\Views\TwigExtension(),
            new \SlimStarter\TwigExtension\MenuRenderer()
        );
    }
public function bootTwig($config){
        $app    = $this->app;
        $view   = $app->view;

        $view->parserOptions = $config;
        $view->parserExtensions = array(
            new \Slim\Views\TwigExtension(),
            new \SlimStarter\TwigExtension\MenuRenderer()
        );
    }
public function bootTwig ( $ config ) { $ app = $ this -> app ; $ view = $ app -> view ; $ view -> parserOptions = $ config ; $ view -> parserExtensions = array ( new \ Slim \ Views \ TwigExtension ( ) , new \ SlimStarter \ TwigExtension \ MenuRenderer ( ) ) ; }
Boot up Twig template engine
@param  Array $config
Boot up Twig template engine