> Smarty模板引擎中文在线手册 > math

{config_load} .

配置文件是通过内建函数载入到模板 { config load }

You can hide variables or entire sections by prepending the variable name or section name with a period. This is useful if your application reads the config files and gets sensitive data from them that the template engine does not need. If you have third parties doing template editing, you can be certain that they cannot read sensitive data from the config file by loading it into the template.

你可以在某个段时期通过预先想好的变量名或者局部名隐藏变量或者完整的一个节。当你的应用程序读取配置文件和取得有用数据而不用读取模板时这个非常有用,如果你有第三方来做模板编辑的话,可以肯定的说它们不能通过载入配置文件到模板而读取到任何有用的数据。

上一篇:
下一篇: