Welcome Guest, Not a member yet? Register   Sign In
Separating the controller and the view
#2

[eluser]CroNiX[/eluser]
Views are typically used for presenting HTML to the user. I don't think most people would consider a downloaded file, a "view". Also, the HTML views are usually separated so a designer can work just on the html and the developer can work on the code.

There's nothing really wrong with how you're doing it. But, if you are doing this often, in multiple places, it might be better to create a library so all of your PHPWord code is self contained in a single file instead of spread across several controllers/methods. Much easier for maintenance if the PHPWord class ever gets upgraded and things change.


Messages In This Thread
Separating the controller and the view - by El Forum - 11-26-2013, 03:44 AM
Separating the controller and the view - by El Forum - 11-26-2013, 10:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB