How to write a common function which has to call from every modules

Hi All,
I want to access some data in all the modules, so how can i create a common function to include every modules.
Kindly guide me which file i has to add the new function(PHP).

Note : I can avoid repetition of the code.

Hi BalamuruganM,

You can write your function in custom/include/custom_utils.php file.

1 Like