Templates from $template_dir

PHP Smarty

Smarty - the compiling PHP template engine
Prev 来源:PHP中文社区 Next

Templates from $template_dir

// from PHP script
$smarty->display("index.tpl");
$smarty->display("admin/menu.tpl");
$smarty->display("file:admin/menu.tpl"); // same as one above

{* from within Smarty template *}
{include file="index.tpl"}
{include file="file:index.tpl"} {* same as one above *}

Prev 来源:PHP中文社区 Home Next
Resources Up Templates from any directory