I’d like to talk about application design and MVC.
Suppose I have a form that can appear on many site pages. For example, Contact form, or Login form.
In order to keep it DRY, I’m thinking about creating a widget for this form and doing all the processing in this widget.
I have two questions:
Is it OK (from the point of app design and MVC) to make create/update operations in the widget?
Is it OK to call a redirect from the widget?
PS. Yeah, I know that I can use AJAX and partials for this, but the question is about widgets.