Jump to content

Talk:ATK Extensions

From NusaATK
Revision as of 13:14, 14 October 2008 by Stevie (talk | contribs)

Smarty Description: Usage: You can use Smarty like this:

 $smarty = atkSmarty::getInstance();
 $smarty->assign('var','great');
 $parsed_template = $smarty->fetch(moduleDir('mymodule').'templates/mytemplate.tpl');Or with the string resource: 
 $smarty = atkSmarty::getInstance();
 $smarty->assign('var','great');
 $parsed_template = $smarty->fetch('string: ATK is {$var}!');

URL: http://smarty.php.net/ Latest version in ATK: 2.6.11 Available since: ATK 5.0


It is not clear where to place the example code!!!