Welcome Guest, Not a member yet? Register   Sign In
PHP objects
#2

[eluser]WanWizard[/eluser]
This can indeed an issue if you work in teams and/or with designers.

Ideally you would use a presenter for this, which is an abstraction layer between the controller and the view. Jamie's blog might give you some pointers.

Alternatively, you can use a template engine (like Smarty, Twig, ...) which can also protect you from these changes, as they don't allow PHP to be used in the templates.


Messages In This Thread
PHP objects - by El Forum - 09-22-2012, 03:53 PM
PHP objects - by El Forum - 09-22-2012, 04:28 PM
PHP objects - by El Forum - 09-22-2012, 04:37 PM
PHP objects - by El Forum - 09-22-2012, 05:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB