Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c4250872
authored
2014-02-07 17:25:56 +0800
by
asta.xie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
controller data inherit the context's data
1 parent
17dd7224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
controller.go
controller.go
View file @
c425087
...
...
@@ -76,6 +76,9 @@ func (c *Controller) Init(ctx *context.Context, controllerName, actionName strin
c
.
TplExt
=
"tpl"
c
.
AppController
=
app
c
.
EnableReander
=
true
for
k
,
v
:=
range
ctx
.
Input
.
Data
{
c
.
Data
[
k
]
=
v
}
}
// Prepare runs after Init before request function execution.
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment