Jump to content

Talk:ATK Extensions: Difference between revisions

From NusaATK
Stevie (talk | contribs)
New page: Smarty Description: Usage: You can use Smarty like this # It is not clear where to place the example code!!!
 
Stevie (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Smarty  
Smarty  
Description:  
Description:  
Usage: You can use Smarty like this
Usage: You can use Smarty like this:
#
 
It is not clear where to place the example code!!!
  $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.

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.