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
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 the example code!!!'''

Revision as of 13:14, 14 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 the example code!!!