@@ -126,7 +126,6 @@ DeleteController
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *DeleteController) Get() {
|
func (this *DeleteController) Get() {
|
||||||
inputs := this.Input()
|
|
||||||
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
|
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
|
||||||
this.Data["Post"] = models.DelBlog(id)
|
this.Data["Post"] = models.DelBlog(id)
|
||||||
this.Ctx.Redirect(302, "/")
|
this.Ctx.Redirect(302, "/")
|
||||||
|
|||||||
Reference in New Issue
Block a user