smarty内置函数config_load用法实例
本文实例讲述了smarty内置函数config_load用法。分享给大家供大家参考。具体如下:{config_load}用于从配置文件中,加载到配置变量。详细用法如下:配置文件:foo.conf说明:[Table] 和 [Customer] 表示段落名称。[Table]pageTitle = "this is mine"bodyBgCol
巴扎黑 2017-02-09 09:39:04 0 0 390
渲染输出常见数据
{* 读取配置文件中的局部配置[section]区内容 *}{* 加载配置文件中的局部区块配置信息 *}{config_load file="app.conf" section="database"}<p>默认的数据库名称是: {$smarty.config.db_name}</p>{* 输出常量 *}<p>站点名称: {
日日新 2019-03-23 10:32:17 0 0 294