1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 17:10:50 +00:00

fix the data

This commit is contained in:
astaxie 2016-01-08 15:52:57 +08:00
parent 77fa891499
commit 302b1ef7df

View File

@ -21,6 +21,6 @@ import (
// SetPaginator Instantiates a Paginator and assigns it to context.Input.Data["paginator"].
func SetPaginator(context *context.Context, per int, nums int64) (paginator *Paginator) {
paginator = NewPaginator(context.Request, per, nums)
context.Input.Data["paginator"] = &paginator
context.Input.SetData("paginator", &paginator)
return
}