输入banner图图片脚本导航/分类

php模版引擎smarty—display渲染文本字符串

$smarty=$this->smarty;
$smarty->assign('foo','value');

$template_string = 'display {$foo} here';

// compiles for later reuse

$smarty->display('string:'.$template_string);

// compiles every time

$smarty->display('eval:'.$template_string);

以上就介绍了php模版引擎smarty—display渲染文本字符串,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。