mercredi 3 août 2016

Emails Templates

Im developing a app that will be sending a lot emails for the users, the structure of the email is basically the same(header, footer), what it changes is the content. There are 30 different emails, that the only thing it changes is the content. Since i dont whant to create 30 views i was thinking in a better way. I was thinking in using one view and the content was passed in a controller. The problem is passing the data in the controller, it doesnt look right passing html (tables, etc) in the controller, since im working in a MVC pattern. Can someone give any advice?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire