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!

Where to buy discount wedding dresses and cheap smart dresses free shipping - Weddingdresstrend.com

Shop for 2018 World Cup Football Boots Online sale at guthjcc.com

Browse best 2018 world cup soccer cleats and shoes from SoccerAzteca.com

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.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 6 plus 8? (Are you human?)

Advertisement