Welcome Guest, Not a member yet? Register   Sign In
Where to put classes of business logic?
#5

[eluser]xwero[/eluser]
If you have one parameter you can add a check to see if the first parameter is not an array and make all other parameters optional. This is a small change.

If you don't want to change your class you can include it as you would in plain php and instantiate it yourself. Another solution is to bend the rules an put the class in a helper this way you have the advantage it doesn't gets loaded more than once and you instantiate it yourself.


Messages In This Thread
Where to put classes of business logic? - by El Forum - 09-25-2008, 01:58 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:23 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:26 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:41 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:48 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:58 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 03:20 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 03:23 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 03:26 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 03:35 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 04:01 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 07:11 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 07:29 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 07:30 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 08:34 AM
Where to put classes of business logic? - by El Forum - 09-25-2008, 02:26 PM
Where to put classes of business logic? - by El Forum - 09-25-2008, 03:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB