?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
void config_load
(string
file [, string section])
This loads config file data and assigns it to the template. This
works identical to the template config_load function.
加載配置文件,并將其中的數(shù)據(jù)傳送到模板中,它的功能和config_load函數(shù)是一樣的。
Technical Note: As of Smarty 2.4.0, assigned template variables are kept across invocations of fetch() and display(). Config vars loaded from config_load() are always global scope. Config files are also compiled for faster execution, and respect the force_compile and compile_check settings.
注意:到Smarty 2.4.0為止,已賦值的模板變量對(duì)于fetch()和display()方法是共享調(diào)用的,而使用config_load()加載的變量是全局的。并且 在編譯時(shí)配置文件也將被編譯,以加快執(zhí)行速度,并且遵守force_compile和compile_check設(shè)置。
Example 13-11. config_load
|