@@ -126,7 +126,6 @@ DeleteController
|
||||
}
|
||||
|
||||
func (this *DeleteController) Get() {
|
||||
inputs := this.Input()
|
||||
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
|
||||
this.Data["Post"] = models.DelBlog(id)
|
||||
this.Ctx.Redirect(302, "/")
|
||||
@@ -256,4 +255,4 @@ edit.tpl
|
||||
## links
|
||||
* [目录](<preface.md>)
|
||||
* 上一章: [数据库操作](<13.4.md>)
|
||||
* 下一节: [小结](<13.6.md>)
|
||||
* 下一节: [小结](<13.6.md>)
|
||||
|
||||
Reference in New Issue
Block a user