Exemple #1
0
func (c *BaseController) setCommonViewData() {
	c.Data["is_login"] = c.isLogin
	c.Data["IsDev"] = utils.IsDev()
	c.Data["title"] = c.SetTitle("")
}
Exemple #2
0
func showSql() {
	if utils.IsDev() {
		orm.Debug = true
	}
}