1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 17:10:54 +00:00

delete GoToFunc & add GetControllerAndAction

This commit is contained in:
astaxie 2013-12-17 20:39:25 +08:00
parent 54c89c0d63
commit 0869df5588

View File

@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string {
c._xsrf_token + "\"/>"
}
func (c *Controller) GoToFunc(funcname string) {
if funcname[0] < 65 || funcname[0] > 90 {
panic("GoToFunc should exported function")
}
c.gotofunc = funcname
func (c *Controller) GetControllerAndAction() (controllerName, actionName string) {
return c.controllerName, c.actionName
}
//utils func for controller internal