Update 13.5.md

this.Ctx.Input.Params is map, not fund
This commit is contained in:
tanyb
2014-05-14 17:59:01 +08:00
parent 3f76ac2024
commit 4f418c4e94

View File

@@ -100,7 +100,7 @@ EditController
} }
func (this *EditController) Get() { func (this *EditController) Get() {
id, _ := strconv.Atoi(this.Ctx.Input.Params(":id")) id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
this.Data["Post"] = models.GetBlog(id) this.Data["Post"] = models.GetBlog(id)
this.Layout = "layout.tpl" this.Layout = "layout.tpl"
this.TplNames = "new.tpl" this.TplNames = "new.tpl"