Get Smarty

Donate

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap glasses from Cheapglasses123.com and save up to 80%.

Where to buy prescription glasses? EyewearCanada.com is your best choice!

Visit www.sport-kick.com for cheap soccer cleats, sneakers and Soccer Jerseys updates

Advertisement

$merge_compiled_includes

设置$merge_compiled_includes为true,Smarty会将子模板的编译文件合并到主模板的编译代码中, 可以增加包含了许多子模板的模板文件的渲染速度。

设置{include}的参数inline可以合并特定的子模板。 inline合并的方式并不一定要开启$merge_compiled_includes配置。


<?php
$smarty->merge_compiled_includes = true;
?>

        

Note

这是编译时的选项。如果修改了该参数,你必须重新编译对应的模板才能生效。

参见 {include}

Comments
No comments for this page.

Advertisement