Sources for file docs/smarty.txt in version 3.0
Click on a comment to hide it. Click here to show all comments.
Smarty
Required Files
plugins/smarty/*
smarty/*
Configuring
// The Smarty Template Engine
public $load_smarty = true;
/**
* Smarty Template Engine
*
* We firmly believe in the usage of a template engine, so we include the best, Smarty.
* If you've allowed it to load, these control *where* it loads, and auto configures
* its controls and plants a special {$xnyo} variable.
*
* http://smarty.php.net/
**/
// what to call the smarty object. ie 'smarty' means it will load under $smarty;
public $smarty_obj = 'smarty';
// the {$xnyo} special var. contents under this array will be accessable in the script
// suggestion: reference them :)
public $smarty_auto_assign = array();
// Smarty configuration options..
// See the smarty manual http://smarty.php.net/manual/en/
public $smarty_config = array ();
Methods
-> See Smarty Manual
Advanced Usage Examples
Changing template based on language..
Debug Console
Smarty Config.
Coming: Smarty Debug Console
