//个人信息 //todo: func (c *ProfileController) Get() { user, err := models.Request_logined(c) if err != nil { return } c.Data["user"] = user c.Layout = "base.tpl" c.TplNames = "profile.tpl" }
//新建记录 func (c *RecordsNewController) Get() { user, err := models.Request_logined(c) if err != nil { return } c.Data["user"] = user c.Layout = "base.tpl" c.TplNames = "recordsnew.tpl" }