예제 #1
0
//分页查询
func (this *EpisodeController) QueryList(page int) revel.Result {
	episodes, pagination :=
		models.GetEpisodes(this.q, page, "", "", "created",
			routes.EpisodeController.QueryList(page))
	this.RenderArgs["episodes"] = episodes
	this.RenderArgs["pagination"] = pagination
	return this.RenderTemplate("article/episode.html")
}
예제 #2
0
파일: app.go 프로젝트: river-lee/qishare
func (this App) Index() revel.Result {
	episodes, pagination := models.GetEpisodes(this.q, 1, "", "", "created", routes.App.Index())
	fmt.Println("")
	return this.Render(episodes, pagination)
}