Skip to content
Discussion options

You must be logged in to vote

While your first point is correct (most plugins don't care about their instances anyway, but you can do as you say) you've missed the point of helpers entirely in the second.

You've found where the coderefs are stored however they're used by calling them as methods on the controller or application (via a generic controller). When done that way they have access to the application.

I'm interested in how you came to be this misguided as clearly you have the effort to walk the debugger more deeply into mojo than I've ever taken it. Have you read the tutorial https://docs.mojolicious.org/Mojolicious/Guides/Tutorial#Helpers ? We recommend reading it and all the guides in the order listed here h…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@belfasthenry
Comment options

@kraih
Comment options

kraih Jan 2, 2021
Maintainer

Answer selected by kraih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants