修改13.5中的blog范例的api,Ctx.Input

This commit is contained in:
zerob13
2014-02-13 11:23:45 +08:00
parent 833b8a02a4
commit 8a1384b454

View File

@@ -124,7 +124,7 @@ DeleteController
} }
func (this *DeleteController) Get() { func (this *DeleteController) Get() {
id, _ := strconv.Atoi(this.Ctx.Params[":id"]) id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
blog := GetBlog(id int) blog := GetBlog(id int)
this.Data["Post"] = blog this.Data["Post"] = blog
models.DelBlog(blog) models.DelBlog(blog)