get时报错:can't find templatefile in the path:updatecontroller/get.tpl

Router:
beego.Router("/update", &controllers.Controller{})

Controller:
func (this *UpdateController) Get() {
    beego.Trace("test")
    return
}

当提交一个get时报如下错误: can't find templatefile in the path:updatecontroller/get.tpl

请问这是怎么回事?

(我并不需要返回网页的)

共 3 个回复


chenhao

用Controller.EnableReander = false解决了

# 1