What I have been doing is making functions for each controllers separately even though their the same so I could use them.
Is there a way that I could make a file with all the common functions so that I could use them on all controllers?
What I have been doing is making functions for each controllers separately even though their the same so I could use them.
Is there a way that I could make a file with all the common functions so that I could use them on all controllers?
A base class for controllers (Controller.php located in components/)??
Is there another way to do the same thing,plz explain in detail,thanks