CodeIgniter Forums
What is the best way to load global variables? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: What is the best way to load global variables? (/thread-56639.html)



What is the best way to load global variables? - El Forum - 01-08-2013

[eluser]behnampmdg3[/eluser]
Hello;

What is the best way to load constants? For example
Code:
define("MAXSIZE", 100);


Helper? Contoller? How?

Thanky thanky







What is the best way to load global variables? - El Forum - 01-08-2013

[eluser]PhilTem[/eluser]
./application/config/constants.php


What is the best way to load global variables? - El Forum - 01-09-2013

[eluser]behnampmdg3[/eluser]
[quote author="PhilTem" date="1357682897"]./application/config/constants.php[/quote]Thank you