Welcome Guest, Not a member yet? Register   Sign In
OOP Design
#5

[eluser]icomefromthenet[/eluser]
I have in the past created seperate business objects to use along side the model, I then just include_once the file in the model's header, so when the model is loaded so is the business object. I just pass this object to all the methods in the model, you can then add some helper methods to merge from a post array, validation , post-process etc as static methods or a baseclass.

I just use the following folder structure

models
---- baseobjects
---- interfaces
---- collections
---- file.php
---- file2.php

Using business object gives you all the advantages of PHP's OOP support.


Messages In This Thread
OOP Design - by El Forum - 03-13-2010, 04:20 AM
OOP Design - by El Forum - 03-13-2010, 05:46 AM
OOP Design - by El Forum - 03-13-2010, 06:08 AM
OOP Design - by El Forum - 03-13-2010, 02:43 PM
OOP Design - by El Forum - 03-14-2010, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB