I'm looking for a way to create an encapsulated functionality for retrieving and calculating chart data from the database.
Basically what I want is to be able to create an object in controllers and then pass that object to the view.
I do have an understanding on how to make helper classes/methods, but how should I go about adding requests to the database and such?
Mashing everything in a single class just seems wrong.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire