5050
5151custom_loader:
5252(default value true)
53- Allow the bundle to override the default twig loader (FileSystemLoader) to use
54- Twig_Loader_Chain to chain our custom Twig Loader (TemplateLoader) and FileSystemLoader.
55- If the template is not found in the DB, it will look for it using the FileSystemLoader.
53+ Allow the bundle to chain our custom Twig loader to the current loader
54+ ( Twig_Loader_Chain). When enable, you can render a template using twig, doing
55+ like this : $this->get('twig')->render('template : name ');
5656You can disable the loader with custom_loader: false
5757
5858variation:
@@ -62,13 +62,18 @@ To switch from one version to another one, just use the variation parameter in t
6262http://url.com/?variation_parameter -> http://url.com/?b
6363
6464
65- If you want to insert the Google Analytics Content Experiment script,
66- just insert the {{ GAexperimentScript }} variable in the template. It
67- will be automatically replaced by the javascript with the Template
68- experiment code.
65+ If you want to insert the Google Analytics Content Experiment script (for AB
66+ Testing), just insert the {{ GAexperimentScript }} variable in the template.
67+ It will be automatically replaced by the GA JavaScripts (only if you have
68+ specified the experiment code in the Template) .
6969
7070You can load a Template from a controller using TemplateManager :
7171$this->get('jm_ab.template_manager')->renderTemplate('name') or ;
7272$this->get('jm_ab.template_manager')->renderTemplate('template: name ',
7373$vars);
7474Note that 'template:' and $vars are optionals.
75+
76+
77+ NOTE : if you are using SonataAdminBundle, the Bundle is coming with the
78+ configuration files to manage your Templates.
79+
0 commit comments