PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-variables.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-variables.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-variables.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 3,465 bytes
 

Contents

Class file image Download

Smarty Class Variables {#api.variables}

These are all of the available Smarty class variables. You can access them directly, or use the corresponding setter/getter methods.

> Note > > All class variables have magic setter/getter methods available. > setter/getter methods are camelCaseFormat, unlike the variable itself. > So for example, you can set and get the \$smarty-\>template\_dir > variable with \$smarty-\>setTemplateDir(\$dir) and \$dir = > \$smarty-\>getTemplateDir() respectively.

> Note > > See > Changing settings by template > section for how to change Smarty class variables for individual > templates.