| [ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 /** 3 * Smarty plugin 4 * @package Smarty 5 * @subpackage plugins 6 */ 7 8 9 /** 10 * {assignvar var=key value=$template_var} 11 * 12 * Smarty's equivalent to PHP's $key=$$template_var 13 * 14 * @param array 15 * @param Smarty 16 */ 17 function smarty_function_assignvar($params, &$smarty) 18 { 19 if (!isset($params['var'])) { 20 $smarty->trigger_error("assign: missing 'var' parameter"); 21 return; 22 } 23 24 if (!isset( $params['value'])) { 25 $smarty->trigger_error("assign: missing 'value' parameter"); 26 return; 27 } 28 29 $smarty->assign($params['var'], $smarty->_tpl_vars[$params["value"]] ); 30 } 31 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|