公共配置文件为 app.ini 可配置项如下: ~~~ ; 公共配置 ; 所有使用过的命名空间在这里注册,用逗号分开 [common] application.directory = APP_PATH "/application/" application.library.directory = APP_PATH "/library" application.library.namespace = "think,extend" application.dispatcher.throwException = TRUE application.dispatcher.catchException = TRUE ; 多个模块,使用逗号分隔 application.modules = Index,Api,Admin application.view.ext = "html" ;SESSION_ID的提交变量,解决flash上传跨域 session.id ='' session.var_session_id ='' ;SESSION 前缀 session.prefix = 'thinkyaf_' ; 驱动方式 支持redis memcache memcached session.type ='' ;使用redis时候请配置redis 主机端口 密码 ;session.host = '127.0.0.1' ;session.port = 6379 ;session.password => '' ;微信小程序 weapp.appid = ''; weapp.ak = ''; ;微信公众号 wechat.appid = ''; wechat.ak = ''; ; 线上配置 [product : common] ; 开发配置 [develop : common] ~~~