-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
@TomBZombie In a discussion at https://www.sitepoint.com/community/t/mvc-refactor-take-2/194004/8 you mention having a success method in the model because it allows the rest to be reused. In another question you said that FormModels should only be to connect the domain model with the GUI and should have no business logic. What is the point then of separating out the success method if the FormModel just connects two things and has no main logic to reuse.
I have an interface that I implement
interface Form {
public function main($data);
public function submit($data);
public function success();
}and I am starting to question the point of the success method if really all I do in submit is call a method on the model that the FormModel was given.