Twig_Environment::enableStrictVariables PHP Method

enableStrictVariables() public method

Enables the strict_variables option.
    public function enableStrictVariables()
    {
        $this->strictVariables = true;
    }

Usage Example

Example #1
0
 public function __construct()
 {
     //@todo: this is hardcode. we should move it to some templating component
     $loader = new TemplateLoader();
     $this->twig = new \Twig_Environment($loader);
     $this->twig->enableStrictVariables();
 }
All Usage Examples Of Twig_Environment::enableStrictVariables