0869df55 by astaxie

delete GoToFunc & add GetControllerAndAction

1 parent 54c89c0d
...@@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string { ...@@ -412,11 +412,8 @@ func (c *Controller) XsrfFormHtml() string {
412 c._xsrf_token + "\"/>" 412 c._xsrf_token + "\"/>"
413 } 413 }
414 414
415 func (c *Controller) GoToFunc(funcname string) { 415 func (c *Controller) GetControllerAndAction() (controllerName, actionName string) {
416 if funcname[0] < 65 || funcname[0] > 90 { 416 return c.controllerName, c.actionName
417 panic("GoToFunc should exported function")
418 }
419 c.gotofunc = funcname
420 } 417 }
421 418
422 //utils func for controller internal 419 //utils func for controller internal
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!