加载配置文件 
在smarty中通过{config_load}加载配置文件。 
属性: 
参数名称    类型  必选参数    默认值 说明 
file    string  Yes n/a 载入的配置文件名 
section string  No  n/a 指定载入配置变量的段落 
scope   string  no  local   配置变量的作用范围,取值local, parent 或 global. local表示变量只能在当前模板的上下文中使用。 parent表示变量可以在当前模板和父模板使用。 global表示变量在任何地方都可用。 
实例一
conf.conf 配置文件.
pageTitle = "hello dqs"
bodyBgColor = #000000
tableBgColor = #000000
rowBgColor = #00ff00
#customer variables section
[Customer]
pageTitle = "Customer Info"加载方式
{config_load file=”example.conf”} 
或是{config_load “example.conf”} 
你可以用section属性单独载入某个指定段落的配置变量。 注意全局的配置变量会同时被载入,同名的段落配置变量会覆盖全局的配置变量。
加载配置文件
从获取的变量,可以通过井号引用起来访问如#hash_marks#, 或者通过Smarty变量
{#pageTitle#} 
原文:http://blog.csdn.net/hsd2012/article/details/52129798