mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:00:55 +00:00
delete GoToFunc & add GetControllerAndAction
This commit is contained in:
parent
54c89c0d63
commit
0869df5588
@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string {
|
|||||||
c._xsrf_token + "\"/>"
|
c._xsrf_token + "\"/>"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Controller) GoToFunc(funcname string) {
|
func (c *Controller) GetControllerAndAction() (controllerName, actionName string) {
|
||||||
if funcname[0] < 65 || funcname[0] > 90 {
|
return c.controllerName, c.actionName
|
||||||
panic("GoToFunc should exported function")
|
|
||||||
}
|
|
||||||
c.gotofunc = funcname
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//utils func for controller internal
|
//utils func for controller internal
|
||||||
|
Loading…
Reference in New Issue
Block a user