1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-02 09:43:28 +00:00

Add ParseForm function for *Controller

This commit is contained in:
miraclesu 2013-07-25 22:26:31 +08:00
parent f552338822
commit b8e06f6365

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)
}