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