Welcome Guest, Not a member yet? Register   Sign In
avoiding repetition of code
#7

[eluser]crumpet[/eluser]
Thats exactly what i wanted !
I've made a MY_Controller which has the functions which all of my controllers had in common. For the function _run() which was in all my controllers but not always exactly the same I just made a second function called _global_run() which all of my _run() functions call. IN the _global_run() function all the common commands are made.

Thanks for the help!


Messages In This Thread
avoiding repetition of code - by El Forum - 09-03-2008, 11:02 AM
avoiding repetition of code - by El Forum - 09-03-2008, 11:11 AM
avoiding repetition of code - by El Forum - 09-03-2008, 11:27 AM
avoiding repetition of code - by El Forum - 09-03-2008, 11:46 AM
avoiding repetition of code - by El Forum - 09-03-2008, 03:00 PM
avoiding repetition of code - by El Forum - 09-03-2008, 03:19 PM
avoiding repetition of code - by El Forum - 09-03-2008, 04:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB