Answer the question
In order to leave comments, you need to log in
Application architecture. Alternatives to MVC?
We develop applications - backend for social games. We work with MVC, but it turns out it's not very convenient.
Events like startGame come from the client - All the main logic is wired in models and events, each action of the controller is something like
public function actionStartGame ($map, $level, $someParams) {
$user = User::getById($clientID);
$user->game->start($map, $level, $someParams);
return $user->responseEvents;
}
Answer the question
In order to leave comments, you need to log in
Well, it's probably enough to understand that a pattern is a template. A template is a ready-made solution that you will or will not use in your project. My opinion is that the template should not be used everywhere, so that later you can shout: "But my engine is made on mvc." You can take general principles from several templates, merge them together and get what you need. Don't limit yourself to templates!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question