Files
gfast/library/response/plugin/blog/response.go
T
2020-12-08 14:37:42 +08:00

15 lines
330 B
Go

package blog
import (
"gfast/library/response"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gview"
)
func Response(r *ghttp.Request, tpl string, params ...gview.Params) error {
view := g.View()
view.SetPath("template/plugin/blog")
return response.WriteTpl(r, tpl, view, params...)
}