Ditching Tools
Permalink
Per Andrews blog, tools is deprecated in favor of keeping it in the controller.
So, I'm making a block that does an ajax call (within add/edit), previously to a tool file, what's the best way of doing that? I thought of using $this->action() to run a function in the controller, but that only works on edit/view.
So, I'm making a block that does an ajax call (within add/edit), previously to a tool file, what's the best way of doing that? I thought of using $this->action() to run a function in the controller, but that only works on edit/view.
You can set up a route in your Package controller, Block controller or whatever like this: