Welcome Guest, Not a member yet? Register   Sign In
Repeating piece of code
#2

[eluser]TheLoops[/eluser]
Just subclass "Controller", add the function to it and then use:

Code:
class Home extends MySubclassedController {
. . .
}
for your controllers and they all will have know that function.


Messages In This Thread
Repeating piece of code - by El Forum - 07-15-2008, 03:01 PM
Repeating piece of code - by El Forum - 07-15-2008, 03:06 PM
Repeating piece of code - by El Forum - 07-15-2008, 04:10 PM
Repeating piece of code - by El Forum - 07-15-2008, 04:17 PM
Repeating piece of code - by El Forum - 07-16-2008, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB