Skip to content

Commit 5b3a363

Browse files
committed
update doc
1 parent ddf126f commit 5b3a363

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Resources/doc/index.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jm_ab:
5050

5151
custom_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');
5656
You can disable the loader with custom_loader: false
5757

5858
variation:
@@ -62,13 +62,18 @@ To switch from one version to another one, just use the variation parameter in t
6262
http://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

7070
You 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);
7474
Note 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

Comments
 (0)