Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End MVC Re-Org – need help with templating / views Reply To: MVC Re-Org – need help with templating / views

#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)?