mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:00:54 +00:00
fix the data
This commit is contained in:
parent
77fa891499
commit
302b1ef7df
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user