Munkey has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, I require your wisdom!
I am using Catalyst and am very happily chaining away, however, I was trying to use begin/end methods in my controllers to do controller-specific stuff which would be needed in the respective controller.
now when I have a Root, a Foo and a Foo::Bar controller, and call a path resolving to an action in Foo::Bar, I was expecting this:
Root->begin gets called
Foo->begin gets called
Foo::Bar->begin gets called
... called action doing stuff here, e.g. Foo::Bar->hello
Foo::Bar->end gets called
Foo->end gets called
Root->end comes last.
Is this expectation entirely off? Or is it spot on and I am doing something wrong somehow? I have built a simple Catalyst application like hinted at, and I only see Root->begin and Root->end ... If anyone could provide me with an insight on what I am wrong about or how to achieve what I would like, that would be really neat :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst begin/end methods
by Your Mother (Archbishop) on Feb 12, 2015 at 00:19 UTC | |
by Anonymous Monk on Feb 12, 2015 at 01:04 UTC | |
by Munkey (Novice) on Feb 12, 2015 at 08:21 UTC | |
|
Re: Catalyst begin/end methods
by Anonymous Monk on Feb 12, 2015 at 00:10 UTC |