How do I extend the application controllers with my own methods?
As I want to make an addition to the registration process.
I was planning on doing this by extending a couple of core files...
... in a custom theme:
The view file is great. It loads in, and I can see my changes.
But I don't know how to handle the controller, including:
* What folder to put it in
* The controller declaration (ie CustomEntryController X extends EntryController)
* Anything else I haven't mentioned here
* Whether this is even possible with this approach
My plan was to overload RegisterApproval() and check that the DiscoveryText was in fact the answer to a question I was going to ask in the view.
It's not a particularly MVC approach (I see there are rules that could be set in the model) but I don't know Garden / Vanilla well enough yet. I'm happy to try anything else as well (hooks/events/Machine Elves) as I prefer to do things properly.
0 · ·