Jump to content

Talk:ATK Extensions: Difference between revisions

From NusaATK
Stevie (talk | contribs)
No edit summary
Stevie (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:




'''It is not clear where to place the example code and it seems not to work'''
'''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.
Smarty error: default template handler function "missing_template_handler" doesn't exist.

Latest revision as of 07:25, 23 October 2008

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.