Define/include "globally available" arrays and functions |
For your array of currencies, define a new config file. You can load it anywhere you need it.
PHP Code: // load the file For your functions, if it's only simple functions, create a helper file. If it's more complicated and you need a class, maybe create a library. Also, have a look at the number_to_currency function in the number helper: http://codeigniter.com/user_guide/helper...o_currency
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |