We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71214ef commit 1254fd6Copy full SHA for 1254fd6
ebook/13.5.md
@@ -100,7 +100,7 @@ EditController
100
}
101
102
func (this *EditController) Get() {
103
- id, _ := strconv.Atoi(this.Ctx.Input.Params(":id"))
+ id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
104
this.Data["Post"] = models.GetBlog(id)
105
this.Layout = "layout.tpl"
106
this.TplNames = "new.tpl"
@@ -124,9 +124,9 @@ DeleteController
124
125
126
func (this *DeleteController) Get() {
127
+ id, _ := strconv.Atoi(this.Ctx.Input.Params(":id"))
128
blog := GetBlog(id int)
129
- this.Data["Post"] = blog
+ this.Data["Post"] = blog
130
models.DelBlog(blog)
131
this.Ctx.Redirect(302, "/")
132
0 commit comments