mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
❤️ awesome and unique features for end-developers are coming...
total refactor of the hero and mvc packages, see README#Next (it's not completed yet) Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
This commit is contained in:
@@ -35,7 +35,7 @@ type formValue func(string) string
|
||||
func (c *Controller) BeforeActivation(b mvc.BeforeActivation) {
|
||||
// bind the context's `FormValue` as well in order to be
|
||||
// acceptable on the controller or its methods' input arguments (NEW feature as well).
|
||||
b.Dependencies().Add(func(ctx iris.Context) formValue { return ctx.FormValue })
|
||||
b.Dependencies().Register(func(ctx iris.Context) formValue { return ctx.FormValue })
|
||||
}
|
||||
|
||||
type page struct {
|
||||
|
||||
Reference in New Issue
Block a user