You do not do. The goal of the tutorial is to create a reusable widget that works independently of any specific controllers. When the application receives the request, it will start the submit loop and automatically start the action assistant in preDispatch:
Now let's look at the action assistant. We remind you that action helpers can define hooks for init () (called by the auxiliary broker each time it is passed to the new controller), preDispatch () (called before the controller hooks preDispatch () and the action itself), and postDispatch () (executed after the action and postDispatch () of the controller).
The helper will get the current controller (depending on what might be for this request) to get an instance of View and configure it using the form
source share