Table of Contents
These are all of the available Smarty class variables. You can access them directly, or use the corresponding setter/getter methods.
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.
Changing settings by template section
for how to change Smarty class variables for individual templates.
This is the name of the default template directory. If you do
not supply a resource type when including files, they will be
found here. By default this is
meaning that Smarty
will look for the
templates/ directory in
the same directory as the executing php script.
It is not recommended to put this directory under the web server document root.