1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 03:50:59 +00:00
Commit Graph

73 Commits

Author SHA1 Message Date
Ricky Lin
4a3902432a Added LayoutSections property to Controller
users can define 0 or multipe sections in the Layout template file so
all kinds of content such as scripts, css can go to proper sections in
the generated html file.
2013-12-24 00:13:24 +08:00
傅小黑
6cb3f588c7 fix comments typo in beego package/ 2013-12-22 15:09:33 +08:00
傅小黑
ce332713c4 gofmt commented go files 2013-12-20 22:35:16 +08:00
傅小黑
b459cf2347 add api comments in file config.go, controller.go, filter.go and flash.go 2013-12-20 21:16:26 +08:00
astaxie
48cefc6767 improve performance change reflect to interface 2013-12-18 21:32:25 +08:00
astaxie
0869df5588 delete GoToFunc & add GetControllerAndAction 2013-12-17 20:39:35 +08:00
astaxie
c3bc2bedc0 add methodName to fix #380 & arrangement the router 2013-12-17 11:19:18 +08:00
astaxie
7b27b7fed0 change SopRun to a variable 2013-12-17 08:53:20 +08:00
astaxie
b9fdbdf7b5 use StopRun to terminate the execution 2013-12-16 23:22:15 +08:00
astaxie
f8708d01bf update abort & error show & sessionRelease in defer 2013-12-16 22:54:29 +08:00
vadimi
31f862c526 Panic template execution errors to show error pages accordingly 2013-12-15 13:17:27 -05:00
astaxie
19119e99f7 move utils to utils libs & func move to templatefunc 2013-12-12 22:25:08 +08:00
astaxie
3c91360d72 dictinct system pkg and third pkg 2013-12-03 21:37:39 +08:00
astaxie
9446563e5b add util func to get the url fix #282
UrlFor(endpoint string, values ...string) string
2013-11-10 23:05:07 +08:00
astaxie
076bd0b440 #254 add controller func SessionRegenerateID 2013-11-05 22:07:09 +08:00
astaxie
aaf1490ff5 fix router 2013-09-28 23:37:05 +08:00
astaxie
a62ed10ab3 add supoort AppController
http://play.golang.org/p/MZptHZeYUx
2013-09-28 23:30:36 +08:00
astaxie
e79d756d06 #230 2013-09-28 22:23:00 +08:00
astaxie
c4edc13413 fix #230 2013-09-28 21:36:36 +08:00
astaxie
d393c329c3 protect parts's len 2013-09-26 21:06:37 +08:00
astaxie
59a67720b4 xsrf's defaut time set to 0 & fix ts not use 2013-09-25 23:07:54 +08:00
astaxie
93e1206d60 xsrf change to randstr and cookie set to security cookie 2013-09-25 23:05:53 +08:00
astaxie
beecc5072e fix #209 2013-09-22 14:35:01 +08:00
astaxie
4a3d32dc1f support auto get session from input fix #211 2013-09-22 11:43:22 +08:00
slene
198d6320dd fix xsrf cookie path should use root 2013-09-13 22:42:15 +08:00
astaxie
ffb347a2bb support nest template 2013-09-12 17:20:32 +08:00
astaxie
19862725f7 support template 2013-09-12 15:24:08 +08:00
astaxie
f502f84423 fix #189 2013-09-12 13:44:24 +08:00
astaxie
63da329468 go on modify api 2013-09-10 00:17:49 +08:00
astaxie
bd61dd9ffc change a log about new version 2013-09-10 00:00:18 +08:00
astaxie
1fedaf21ec jsonp set header to javascript 2013-08-19 21:34:34 +08:00
astaxie
0372b817d1 ServeJson ServeJsonp ServeXml and choice 2013-08-16 15:49:16 +08:00
astaxie
a3363b0605 json change from Indent to none 2013-08-15 22:27:26 +08:00
astaxie
9631c663d5 fix #145
this.DestroySession()
2013-08-10 23:58:25 +08:00
astaxie
10f4e822c3 add XSRFExpire 2013-08-07 11:22:23 +08:00
astaxie
f9a31ea00a EnableXSRF 2013-08-06 23:21:52 +08:00
astaxie
e47a147c3b serverJson Supoort 中文编码 2013-08-06 16:37:41 +08:00
astaxie
a611480b94 fix #121 2013-08-05 00:03:47 +08:00
astaxie
dbfd844ff2 beego support flash data 2013-08-03 17:55:53 +08:00
astaxie
485d89d5c8 tpl tolower 2013-07-30 22:45:50 +08:00
astaxie
8674b81b3a fix router & tpl tolower 2013-07-30 22:17:16 +08:00
miraclesu
b8e06f6365 Add ParseForm function for *Controller 2013-07-25 22:27:25 +08:00
astaxie
ee9223b1b9 fix #18
func (this *MainController) Get() {
this.GoToFunc("Test")
}

func (this *MainController) Test() {
this.Ctx.WriteString("testtest")
}
2013-07-08 17:35:09 +08:00
astaxie
d2a16ff8f6 fix #26 add xsrf function 2013-07-08 16:17:08 +08:00
astaxie
189df1280c fix #87 2013-07-02 09:45:12 +08:00
astaxie
6a260ca76d Merge pull request #71 from yecrane/master
form获取相同名字的对象数组值
2013-06-17 01:03:04 -07:00
yecrane
27896c5700 Update controller.go
form获取相同名字的对象数组值
2013-06-17 16:12:35 +09:00
lw
5d531d3da6 fix jsonp, use Buffer 2013-06-14 09:39:56 +08:00
lw
06e002cf2c feture: add jsonp 2013-06-13 17:17:54 +08:00
astaxie
b2abb4eb80 fix #66 2013-06-11 23:31:40 +08:00