In order to understand Smarty variables and methods, let’s first look at the Smarty library. Being a programmer probably makes you wonder how the Smarty library was built. If we look in the Smarty libs
folder we can see four files: Config_File.class.php
, debug.tpl
, Smarty.class.php
, and Smarty_Compiler.class.php
.
The Config_File.class.php
file contains a class for reading Smarty configuration files from the config
folder. It has four configuration variables that you can edit to suit your application. These are:
Configuration Variable |
Application |
---|---|
var $overwrite = true; |
Controls whether variables with the same name overwrite each other. |
var $booleanize = true; |
Controls whether config values of on/true/yes and off/false/no get converted to Boolean values automatically. |
var $read_hidden = true; |
Controls whether hidden config sections/vars are read from the file. |
var $fix_newlines = true; |
Controls whether or not to fix Mac or DOS formatted... |