This makes sense! Thanks!
On Monday, October 24, 2016 at 1:17:26 PM UTC+5:30, Deep Shah wrote:
>
> What kind of methods should be part of the models and what should be in
> the views? Can anyone give me an example of a method which should be in a
> Model than the views file?
>
--
You received
Any method that works *only* with the model data and is used in multiple
places in the application should be a part of the model.
Next, if you have functions that operate on multiple pieces of data (or
more than 1 model instances) you should put them in the view where they are
used. But if these f
2 matches
Mail list logo