1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:40:55 +00:00

should copy the data direct. don't need range

This commit is contained in:
asta.xie 2014-02-08 10:42:34 +08:00
parent c4250872ca
commit 1b778509c9

View File

@ -76,9 +76,7 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin
c.TplExt = "tpl" c.TplExt = "tpl"
c.AppController = app c.AppController = app
c.EnableReander = true c.EnableReander = true
for k, v := range ctx.Input.Data { c.Data = ctx.Input.Data
c.Data[k] = v
}
} }
// Prepare runs after Init before request function execution. // Prepare runs after Init before request function execution.