Home › Forums › Back End › MVC Re-Org – need help with templating / views › Reply To: MVC Re-Org – need help with templating / views
September 17, 2014 at 3:53 pm
#183430
shaneisme
Participant
To answer my own question based on what I’ve put together so far: I’m not doing anything in the model with emails, I’ll just have the view call any templates it needs to output the object.
I’m also just naming the templates after the email method name so there’s a direct correlation there.
So now my next quandry… if I’m just doing this:
ob_start();
include path/to/file.php
$body = ob_get_clean();
I could technically just put the HTML in as a string in the view… am I gaining anything by keeping it in a separate file (other than reusability)?