Welcome Guest, Not a member yet? Register   Sign In
How to make 'global' functions?
#5

[eluser]jedd[/eluser]
[quote author="dsentker" date="1265206913"]Hi again,

i've got a few, small functions (most of them are one-liner) - i want to access these function from different controllers. Where i have to put these function(s) if i dont want to copy (duplicate) the functions in every controller?[/quote]

Definitely [url="/wiki/MY_Controller"]MY_Controller[/url] is your friend here.


Messages In This Thread
How to make 'global' functions? - by El Forum - 02-03-2010, 02:21 AM
How to make 'global' functions? - by El Forum - 02-03-2010, 02:29 AM
How to make 'global' functions? - by El Forum - 02-03-2010, 03:05 AM
How to make 'global' functions? - by El Forum - 02-03-2010, 05:32 AM
How to make 'global' functions? - by El Forum - 02-03-2010, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB