Thin Models

Recommend this page to a friend!

      Tiny PHP ORM Framework  >  Tiny PHP ORM Framework package blog  >  PHP ORM Pros and Cons  >  All threads  >  Thin Models  >  (Un) Subscribe thread alerts  
Subject:Thin Models
Summary:Thin Models
Messages:3
Author:Sean
Date:2016-05-31 12:21:13
 

  1. Thin Models   Reply   Report abuse  
Sean - 2016-05-31 12:21:13
If Book->formatTitleForCustomerNewsletter() should never be part of the model, where should it go using a MVC approach?

Would it go in a helpers file or maybe a book library file?

  2. Re: Thin Models   Reply   Report abuse  
Manuel Lemos - 2016-05-31 18:50:53 - In reply to message 1 from Sean
If it is for display only, I think it should go to your view code.

  3. Re: Thin Models   Reply   Report abuse  
Victor Bolshov - 2016-06-01 14:58:47 - In reply to message 1 from Sean
A view helper is a good choice, IMO

 

For more information send a message to info at phpclasses dot org.