Action Models

In the first versions of Gobline (when it was still called Mendo Framework), application developers had to create a View Model class for each single Controller, which turned out to be quite tedious. For this reason, Controllers and View Models got merged into Action Models.

Gobline Action Models classes contain (optionally) an __invoke() method, which acts like a controller action. The controller action changes the classes' properties (application state) and the Action Model is then passed to the View. The View fetches the data it needs from the Action Model.