diff --git a/docs/en/designers/language-custom-functions/language-function-assign.xml b/docs/en/designers/language-custom-functions/language-function-assign.xml
index a42eece4..cbc228aa 100644
--- a/docs/en/designers/language-custom-functions/language-function-assign.xml
+++ b/docs/en/designers/language-custom-functions/language-function-assign.xml
@@ -3,11 +3,10 @@
{assign}
- {assign} is used for assigning template variables
- during the execution
- of a template.
+ {assign} is used for assigning template variables
+ during the execution of a template.
-
+
@@ -47,7 +46,7 @@
{assign}
@@ -64,29 +63,31 @@ The value of $name is Bob.
{assign} with some maths
-This complex example must have the variables in backticks
+This complex example must have the variables in `backticks`
-
+
- Accessing {assign} variables from a PHP script.
+ Accessing {assign} variables from a PHP script
- To access {assign} variables from the php script use
- get_template_vars().
- However, the variables are only available after/during template execution
- as in the following example
+ To access {assign} variables from a php script use
+
+ get_template_vars().
+ Here's the template that creates the variable $foo.
+The template variables are only available after/during template
+execution as in the following script.
+
get_template_vars('foo');
-// fetch the template to a dead variable
-$dead = $smarty->fetch('index.tpl');
+// fetch the template to a variable
+$whole_page = $smarty->fetch('index.tpl');
// this will output 'smarty' as the template has been executed
echo $smarty->get_template_vars('foo');
@@ -117,22 +118,22 @@ echo $smarty->get_template_vars('foo');
- {capture},
- {include},
- {include_php},
- {insert},
- {counter},
- {cycle},
- {eval},
- {fetch},
- {math},
- {textformat}
+ {capture},
+ {include},
+ {include_php},
+ {insert},
+ {counter},
+ {cycle},
+ {eval},
+ {fetch},
+ {math},
+ {textformat}
- See also assign()
+ See also assign()
and
- get_template_vars().
+ get_template_vars().
{debug}
+
+ {debug} dumps the debug console to the page. This works
+ regardless of the debug
+ settings in the php script. Since this gets executed at runtime, this is
+ only able to show the assigned
+ variables; not the templates that
+ are in use. However, you can see all the currently available variables
+ within the scope of a template.
+
+
@@ -29,17 +39,10 @@
+
- {debug} dumps the debug console to the page. This works regardless
- of the debug
- settings in Smarty. Since this gets executed at runtime, this is
- only able to show the assigned
- variables, not the templates that
- are in use. But, you see all the currently available variables
- within the scope of this template.
-
-
- See also Debugging console
+ See also the
+ debugging console page.