mirror of
https://gitee.com/johng/gf
synced 2026-06-27 01:43:33 +08:00
修改单例配置管理器及模板引擎对象的启动参数名称
This commit is contained in:
@ -41,7 +41,7 @@ func View() *gview.View {
|
||||
if result != nil {
|
||||
return result.(*gview.View)
|
||||
} else {
|
||||
path := gcmd.Option.Get("viewpath")
|
||||
path := gcmd.Option.Get("gf.viewpath")
|
||||
if path == "" {
|
||||
path = genv.Get("gf.viewpath")
|
||||
if path == "" {
|
||||
@ -67,7 +67,7 @@ func Config() *gcfg.Config {
|
||||
if result != nil {
|
||||
return result.(*gcfg.Config)
|
||||
} else {
|
||||
path := gcmd.Option.Get("cfgpath")
|
||||
path := gcmd.Option.Get("gf.cfgpath")
|
||||
if path == "" {
|
||||
path = genv.Get("gf.cfgpath")
|
||||
if path == "" {
|
||||
|
||||
Reference in New Issue
Block a user