摘要:
模板 this.Layout = "admin/layout.html" this.TplName = "admin/list.html" 在layout.html中必须有一下代码,才能显示list.html {{.Layout.Content}} LayoutSection this.Layout 阅读全文
摘要:
// ShowLogin 登陆显示 func (c *UserController) ShowLogin() { username := c.Ctx.GetCookie("username") if username != "" { c.Data["username"] = username c.D 阅读全文