3 ms·
> The controller is the data. No, it's not. Because a single controller over its lifetime can be bound to many different models. The controller is glue. It br
by ef4 14y ago
> The controller is the data.
No, it's not. Because a single controller over its lifetime can be bound to many different models.
The controller is glue. It brings together whichever model is appropriate at the moment with whatever view is appropriate at the moment, and makes decisions about when to change those things.
- AdrianRossouw 14y agoThe controller seems to be where you put logic that would have ended up in your templates. ie: more complex conditionals and filtering and the like.