liulixiang1988
118e07158e
improve the 'geturl'
...
If we have a url mapping like this:
`beego.Router(“/test”, &controllers.WeightController{},
"get:GetDetails”)`
when u use `UrlFor(“WeightController.GetDetails”, “foo”, 1, “bar”, 2 `,
it should return `/test?foo=1&bar=2` rather than `/test`.
2014-08-11 22:19:59 +08:00
astaxie
2773fda883
session:change the driver from beego to bradfitz
2014-08-08 16:43:39 +08:00
astaxie
99c03a2b9c
fix the nil judge
2014-08-08 13:16:51 +08:00
astaxie
b1b4dbb0e4
fix the nil judge
2014-08-08 12:02:44 +08:00
astaxie
77e1f26dd4
Merge pull request #728 from nizsheanez/null_pointer_panic_improve
...
[orm] improve null pointer panic message
2014-08-08 09:01:51 +08:00
astaxie
2820f630c8
config: add more method
...
DefaultString(key string, defaultval string) string // support
section::key type in key string when using ini and json type;
Int,Int64,Bool,Float,DIY are same.
DefaultStrings(key string, defaultval []string) []string //get string
slice
DefaultInt(key string, defaultval int) int
DefaultInt64(key string, defaultval int64) int64
DefaultBool(key string, defaultval bool) bool
DefaultFloat(key string, defaultval float64) float64
DIY(key string) (interface{}, error)
GetSection(section string) (map[string]string, error)
SaveConfigFile(filename string) error
2014-08-07 17:24:21 +08:00
astaxie
1f6c5599aa
migration: version 1
2014-08-07 16:30:28 +08:00
Alexey Sharov
df8c73b23a
improve null pointer panic message
2014-08-07 12:14:10 +07:00
astaxie
ea6982fcea
beego: template fund when the start> len(bt)
2014-08-05 23:52:06 +08:00
astaxie
a3f40234ca
Merge branch 'develop' of https://github.com/astaxie/beego into develop
2014-08-05 08:56:34 +08:00
astaxie
2c420573d4
fix #703
2014-08-05 08:56:04 +08:00
astaxie
c0d3cc6fc5
beego: fix the domain string
2014-08-05 08:55:46 +08:00
astaxie
3f7ecea089
beego: Display function move from toolbox to utils
2014-08-04 20:52:18 +08:00
astaxie
f4147058fc
fix when delete the commentsRouter.go
2014-08-04 17:39:14 +08:00
astaxie
1fb24aca34
beego: commentsrouter use the workPath fix #708
2014-08-04 17:34:52 +08:00
astaxie
885c0678ff
move filter wrong http method
2014-08-04 16:21:34 +08:00
astaxie
d7a5281bda
session: support cookie domain
2014-08-04 16:21:06 +08:00
astaxie
474a16a7a0
beego: improve the static file server
2014-08-04 15:31:27 +08:00
astaxie
1d36b19cab
Merge branch 'develop' of https://github.com/astaxie/beego into develop
2014-08-04 15:00:42 +08:00
astaxie
deed251794
Merge pull request #720 from MicroMoon/patch-1
...
revise the comment of SliceIntersect
2014-08-02 23:28:08 +08:00
Stan Sun
22ba252c8f
fix the comment of SliceIntersect
...
The implementations of SliceDiff and SliceIntersect are the same.
However, the comments of them are opposite.
The former is (slice1 - slice2) while the latter is (slice2- slice1)
2014-08-02 17:54:57 +08:00
astaxie
289f050c04
cache: fix comments the return err
2014-08-02 10:12:03 +08:00
astaxie
bbd31131a4
beego:parse judge weather the commentsRouter exist
2014-08-02 10:11:45 +08:00
astaxie
008ae39ff6
Merge branch 'master' into develop
2014-08-01 17:04:22 +08:00
astaxie
0836b9e13f
fix #718
2014-08-01 17:03:28 +08:00
astaxie
7a39a3c52f
middleware: error page set the content-type
2014-08-01 16:46:51 +08:00
astaxie
509af636b1
Merge pull request #716 from 4eek/docfix-validations-HasErrors
...
Fixed docs: HasErrors is a method not a variable
2014-07-29 22:04:26 +08:00
Kevin Fourie
daf8b1101f
Fixed docs: HasErrors is a method not a variable
2014-07-29 15:05:04 +02:00
astaxie
428aec1c24
Merge pull request #715 from MicroMoon/develop
...
revise a comment
2014-07-28 09:52:26 +08:00
stansun
a804d242d9
revise a comment
...
If it gets a msg from the buffer chan, it will write the message to
outputs.
2014-07-27 07:13:17 -04:00
astaxie
7ddd20340b
orm: delete the old docs
2014-07-26 23:25:59 +08:00
astaxie
e7fcb824c1
utils: fix the safemap Items
2014-07-26 23:25:51 +08:00
astaxie
ee9749d640
beego:fix #685
...
move XsrfToken& CheckXsrfCookie to context
2014-07-24 23:12:21 +08:00
astaxie
d7090689e8
cache: change the memcache &redis driver
...
change the memcache to the newest
2014-07-24 22:54:56 +08:00
astaxie
52d153da87
Merge pull request #710 from francoishill/patch-8
...
Update smtp.go (develop branch)
2014-07-22 13:45:24 +08:00
Francois
6ce55e8884
Update smtp.go (develop branch)
...
For mail servers that do not require Authentication we must pass NIL for the SendMail parameter 2 (the auth parameter). Otherwise it fails to send the mail.
2014-07-22 07:21:47 +02:00
astaxie
91ee42ceeb
beego:update the Abort Status
2014-07-18 15:38:29 +08:00
astaxie
d17f107fc4
beego: fix #702 auto render
2014-07-18 13:29:54 +08:00
astaxie
ae8bb8ce82
Merge pull request #701 from fuxiaohei/develop
...
code style simplify
2014-07-17 16:51:01 +08:00
fuxiaohei
38188098c5
fix testing fail
2014-07-17 16:48:10 +08:00
fuxiaohei
c372328f88
code style simplify
2014-07-17 16:22:52 +08:00
fuxiaohei
a6ced64441
code style simplify
2014-07-17 16:22:41 +08:00
astaxie
69094b2786
remove koding link
2014-07-17 16:05:17 +08:00
astaxie
08397fef45
Merge pull request #700 from fuxiaohei/develop
...
code style simplify
2014-07-17 15:58:37 +08:00
fuxiaohei
84da1c924a
code style simplify
2014-07-17 15:56:06 +08:00
fuxiaohei
f733b5707a
code style simplify
2014-07-17 15:49:40 +08:00
fuxiaohei
9d0798edc6
Merge branch 'develop' of https://github.com/astaxie/beego into develop
2014-07-17 15:46:28 +08:00
astaxie
1858f3073b
session: fix #688
2014-07-16 23:05:38 +08:00
astaxie
e6d6419a65
beego: static file support robots.txt
2014-07-16 22:27:53 +08:00
fuxiaohei
e52386b52d
code style simplify
2014-07-15 10:01:26 +08:00