beedoc
beedoc copied to clipboard
Confusion on accessing config variables
In the beego docs I see two ways of accessing Config variables but only former works later not working. Am I missing anything?
For example:
- According to http://beego.me/docs/mvc/controller/config.md
SessionProvider
variable should be accessed like
beego.BConfig.WebConfig.Session.SessionProvider = "file"
- But according to http://beego.me/docs/mvc/controller/session.md
SessionProvider
variable can be accessed like
beego.SessionProvider = "file"
However 2. is nor working. It Says beego.SessionProvider undefined
Can you guys help me understand what is happening?
Thanks in advance.
Hi @kavirajk , the reason is the document in the second case is wrong, haven't updated for 1.6 yet.
app.conf 里面的key=value,value值怎么修改的。