Jump to content

Talk:ATK Extensions

From NusaATK

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 this example code and it seems not to work:

Smarty error: default template handler function "missing_template_handler" doesn't exist.