1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-10 20:30:54 +00:00
Commit Graph

90 Commits

Author SHA1 Message Date
astaxie
1da37f6ce1 beego: controller add ServeFormatted
ServeFormatted serve Xml OR Json, depending on the value of the Accept
header
2014-05-17 02:26:52 +08:00
astaxie
c5c806b58e beego: XSRF support Controller level fix #610
default value is true when you Enable Global XSRF, also can control in
the prepare function to change the value.
2014-05-17 02:26:51 +08:00
astaxie
dce09837b9 fix the typo 2014-05-17 02:26:50 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
astaxie
4245521660 fix #576 2014-05-17 02:26:50 +08:00
astaxie
a99802b7d1 beego:query data from Form & params 2014-04-10 22:21:08 +08:00
asta.xie
8188873216 omit the data init 2014-03-14 12:00:53 +08:00
asta.xie
57afd3d979 GetStrings action as GetString 2014-03-12 15:56:05 +08:00
slene
d8b9db8d3e move SetSecureCookie / GetSecureCookie to *context.Context and alias in Controller 2014-03-12 15:56:04 +08:00
Jared Folkins
47d7ac06b7 fix: added nil check on c.CruSession to prevent crash 2014-02-26 16:44:31 -08:00
asta.xie
1b778509c9 should copy the data direct. don't need range 2014-02-08 10:42:34 +08:00
asta.xie
c4250872ca controller data inherit the context's data 2014-02-07 17:25:56 +08:00
asta.xie
bbc71142d7 controller can controller whether render the template.
EnableReander default is true.
2014-02-07 00:38:58 +08:00
Pengfei Xue
d014ccfb8e bug fix, session stored in redis cannot be deleted 2014-01-23 19:28:58 +08:00
slene
f419c12427 add captcha util 2014-01-16 20:53:35 +08:00
slene
6e9ba0ea7f fix SessionRegenerateID should release old SessionStore and release new SessionStore in router.go 2014-01-11 17:01:33 +08:00
傅小黑
62f54cbbee fix typo error 2013-12-28 20:14:36 +08:00
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