mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-07 15:51:37 +01:00
22 lines
329 B
PHP
22 lines
329 B
PHP
<?php
|
|
/**
|
|
* Smarty plugin for assign
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
/**
|
|
* Smarty {pluginassign}
|
|
*
|
|
* @param array $params parameter array
|
|
* @param object $template template object
|
|
*
|
|
* @return string
|
|
*/
|
|
function smarty_function_pluginassign($params, $template)
|
|
{
|
|
$template->assign($params[ 'var' ], $params[ 'value' ]);
|
|
return '';
|
|
}
|