diff --git a/docs/en/appendixes/tips.xml b/docs/en/appendixes/tips.xml index 5afa8863..f458f4f6 100644 --- a/docs/en/appendixes/tips.xml +++ b/docs/en/appendixes/tips.xml @@ -45,7 +45,7 @@ If a variable is used frequently throughout your templates, applying the default modifier every time it is mentioned can get a bit ugly. You can remedy this by assigning the variable its default value with the - assign function. + {assign} function. Assigning a template variable its default value @@ -118,7 +118,8 @@ footer.tpl archive example, we are using a variable from the archives_page.conf file instead of a hard coded variable. Also notice that "BC News" is printed if the $title variable is not set, using the - default variable modifier. + default + variable modifier. @@ -208,7 +209,16 @@ function makeTimeStamp($year="", $month="", $day="") ]]> + + + See also + {html_select_date}, + {html_select_time}, + date_format + and $smarty.now, + + WAP/WML diff --git a/docs/en/appendixes/troubleshooting.xml b/docs/en/appendixes/troubleshooting.xml index e74b324c..abb15311 100644 --- a/docs/en/appendixes/troubleshooting.xml +++ b/docs/en/appendixes/troubleshooting.xml @@ -47,12 +47,21 @@ Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 When you encounter a PHP parsing error, the error line number will correspond to the compiled PHP script, not the template itself. Usually you can look at the template and spot the syntax error. Here are some - common things to look for: missing close tags for {if}{/if} or - {section}{/section}, or syntax of logic within an {if} tag. If you + common things to look for: missing close tags for + {if}{/if} or + {section}{/section}, + or syntax of logic within an {if} tag. If you can't find the error, you might have to open the compiled PHP file and go to the line number to figure out where the corresponding error is in the template. + + See also + debugging, + $error_reporting + and + trigger_error(). + + diff --git a/docs/en/designers/language-builtin-functions/language-function-literal.xml b/docs/en/designers/language-builtin-functions/language-function-literal.xml index 03bd9667..77c596ed 100644 --- a/docs/en/designers/language-builtin-functions/language-function-literal.xml +++ b/docs/en/designers/language-builtin-functions/language-function-literal.xml @@ -3,7 +3,7 @@ literal - Literal tags allow a block of data to be taken literally. This is typically + {literal} tags allow a block of data to be taken literally. This is typically used around javascript or stylesheet blocks where curly braces would interfere with the template delimiter syntax. Anything within {literal}{/literal} tags is not interpreted, but displayed as-is. If you diff --git a/docs/en/designers/language-builtin-functions/language-function-php.xml b/docs/en/designers/language-builtin-functions/language-function-php.xml index 45059eea..b6112717 100644 --- a/docs/en/designers/language-builtin-functions/language-function-php.xml +++ b/docs/en/designers/language-builtin-functions/language-function-php.xml @@ -3,7 +3,7 @@ php - php tags allow php to be embedded directly into the template. They + {php} tags allow php to be embedded directly into the template. They will not be escaped, regardless of the $php_handling setting. This is for advanced users only, not normally needed. @@ -22,6 +22,7 @@ See also + $php_handling, {include_php}, {include} and Componentized Templates. diff --git a/docs/en/designers/language-builtin-functions/language-function-section.xml b/docs/en/designers/language-builtin-functions/language-function-section.xml index d15eacf9..5740871c 100644 --- a/docs/en/designers/language-builtin-functions/language-function-section.xml +++ b/docs/en/designers/language-builtin-functions/language-function-section.xml @@ -76,16 +76,16 @@ Template sections are used for looping over arrays of data. All - section tags must be paired with - /section tags. Required parameters are + {section} tags must be paired with + {/section} tags. Required parameters are name and loop. The name - of the section can be anything you like, made up of letters, + of the {section} can be anything you like, made up of letters, numbers and underscores. Sections can be nested, and the nested section names must be unique from each other. The loop variable (usually an array of values) determines the number of times the section will loop. When printing a variable within a section, the section name must be given next to variable name within brackets - []. sectionelse is + []. {sectionelse} is executed when there are no values in the loop variable. @@ -262,7 +262,8 @@ Sections also have their own variables that handle section properties. - These are indicated like so: {$smarty.section.sectionname.varname} + These are indicated like so: + {$smarty.section.sectionname.varname} @@ -631,7 +632,7 @@ - See also foreach + See also {foreach} and $smarty.section. diff --git a/docs/en/designers/language-custom-functions/language-function-fetch.xml b/docs/en/designers/language-custom-functions/language-function-fetch.xml index 37bb9d14..9256fb74 100644 --- a/docs/en/designers/language-custom-functions/language-function-fetch.xml +++ b/docs/en/designers/language-custom-functions/language-function-fetch.xml @@ -38,7 +38,7 @@ - fetch is used to fetch files from the local file system, http, or + {fetch} is used to fetch files from the local file system, http, or ftp and display the contents. If the file name begins with "http://", the web site page will be fetched and displayed. If the file name begins with "ftp://", the file will be fetched from the @@ -47,7 +47,7 @@ If you supply the special "assign" attribute, the output of the - fetch function will be assigned to this template variable instead of + {fetch} function will be assigned to this template variable instead of being output to the template. (new in Smarty 1.5.0) @@ -88,7 +88,11 @@ - See also api fetch(). + See also + {capture}, + {eval} + and + fetch(). + diff --git a/docs/en/designers/language-variables/language-variables-smarty.xml b/docs/en/designers/language-variables/language-variables-smarty.xml index 9aaaca51..4adce2f6 100644 --- a/docs/en/designers/language-variables/language-variables-smarty.xml +++ b/docs/en/designers/language-variables/language-variables-smarty.xml @@ -88,9 +88,11 @@ {$smarty.capture} - The output captured via {capture}..{/capture} construct can be + The output captured via + {capture}..{/capture} + construct can be accessed using {$smarty} variable. See section on - capture for an example. + {capture} for an example. @@ -102,7 +104,7 @@ linkend="language.config.variables">config variables. {$smarty.config.foo} is a synonym for {#foo#}. See the section on config_load for an example. + linkend="language.function.config.load">{config_load} for an example. @@ -110,8 +112,8 @@ {$smarty.section}, {$smarty.foreach} {$smarty} variable can be used to refer to - 'section' and - 'foreach' + {section} and + {foreach} loop properties. diff --git a/docs/en/programmers/advanced-features/advanced-features-objects.xml b/docs/en/programmers/advanced-features/advanced-features-objects.xml index 162709db..e84fbe04 100644 --- a/docs/en/programmers/advanced-features/advanced-features-objects.xml +++ b/docs/en/programmers/advanced-features/advanced-features-objects.xml @@ -18,7 +18,7 @@ keep template syntax to a minimum. - If security is enabled, + If $security is enabled, no private methods or functions can be accessed (begininning with "_"). If a method and property of the same name exist, the method will be used. @@ -44,7 +44,9 @@ template ({foobar->meth2}...{/foobar->meth2}) and the parameters to the methods have the same synopsis as the - parameters for block-function-plugins: They get 4 parameters + parameters for + block-function-plugins: + They get 4 parameters $params, $content, &$smarty and @@ -117,3 +119,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + diff --git a/docs/en/programmers/api-functions/api-assign-by-ref.xml b/docs/en/programmers/api-functions/api-assign-by-ref.xml index eacbc779..5ba6cfb8 100644 --- a/docs/en/programmers/api-functions/api-assign-by-ref.xml +++ b/docs/en/programmers/api-functions/api-assign-by-ref.xml @@ -44,7 +44,7 @@ $smarty->assign_by_ref('Address', $address); See also assign(), clear_all_assign(), append() - and {assign} function + and {assign} diff --git a/docs/en/programmers/api-functions/api-assign.xml b/docs/en/programmers/api-functions/api-assign.xml index 90d84635..dd8450fd 100644 --- a/docs/en/programmers/api-functions/api-assign.xml +++ b/docs/en/programmers/api-functions/api-assign.xml @@ -40,7 +40,7 @@ $smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); See also assign_by_ref(), clear_assign(), append(), - {assign}. + {assign}, and get_template_vars() diff --git a/docs/en/programmers/api-functions/api-get-config-vars.xml b/docs/en/programmers/api-functions/api-get-config-vars.xml index 3c902356..8a8fda88 100644 --- a/docs/en/programmers/api-functions/api-get-config-vars.xml +++ b/docs/en/programmers/api-functions/api-get-config-vars.xml @@ -35,13 +35,11 @@ print_r($config_vars); See also clear_config(), - {config_load} + {config_load}, + config_load() and -config_load(), - - + get_template_vars(). -