Add ParseForm function for *Controller

This commit is contained in:
miraclesu 2013-07-25 22:26:31 +08:00
parent f552338822
commit b8e06f6365
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ func (c *Controller) Input() url.Values {
return c.Ctx.Request.Form
}
func (c *Controller) ParseForm(obj interface{}) error {
return ParseForm(c.Input(), obj)
}
func (c *Controller) GetString(key string) string {
return c.Input().Get(key)
}