1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 10:20:18 +00:00

simplify beego

This commit is contained in:
xiemengjun
2012-12-17 22:15:21 +08:00
parent ad892008cc
commit d562687868
4 changed files with 79 additions and 14 deletions

View File

@ -7,6 +7,7 @@ import (
"html/template"
"io/ioutil"
"net/http"
"net/url"
"path"
"strconv"
)
@ -145,3 +146,8 @@ func (c *Controller) ServeXml() {
c.Ct.ContentType("xml")
c.Ct.ResponseWriter.Write(content)
}
func (c *Controller) Input() url.Values {
c.Ct.Request.ParseForm()
return c.Ct.Request.Form
}