Usage of get, post, request, cookies, and session variables in the smarty Template
- {$ Smarty. now | date_format: "% Y-% m-% d % H: % M: % S "}
2. {$ smarty. const} can directly access PHP constants. for example:
- {$ Smarty. const. _ MY_CONST_VAL}
3. the output of {$ smarty. capture} can be intercepted through the {capture}... {/capture} structure and can be accessed using the {$ smarty} variable.
4. the {$ smarty. config} {$ smarty} variable can access the loaded config variable, for example, {$ smarty. config. foo}, and it can represent {# foo #}
5. variables {$ smarty. section}, {$ smarty. foreach} {$ smarty} can access the attributes of the 'coles' and 'foreach' loops.
6. {$ smarty. template} displays the name of the currently processed template.
7. {$ smarty. version} displays the version of the smarty template 8. {$ smarty. ldelim} displays the left separator 9. {$ smarty. rdelim} displays the right separator |