how to set a golbal constant-value?i want to use the variable anywhere without manual loading it - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to set a golbal constant-value?i want to use the variable anywhere without manual loading it (/showthread.php?tid=16081) |
how to set a golbal constant-value?i want to use the variable anywhere without manual loading it - El Forum - 02-24-2009 [eluser]RING[/eluser] how to set a golbal variable?i want to use the variable anywhere without manual loading it where should i define the constant-value ? some constant-value just like prefix-db_table-name,or my website-name.... how to set a golbal constant-value?i want to use the variable anywhere without manual loading it - El Forum - 02-24-2009 [eluser]murtuza54[/eluser] Hi use session variables I am not using readymade library of session but i have made my own. but you can get session library details from user guide. its easy and you will have global variables anywhere in your application.. how to set a golbal constant-value?i want to use the variable anywhere without manual loading it - El Forum - 02-24-2009 [eluser]pistolPete[/eluser] You can either create your own config file or define a constant in ./system/application/config/constants.php. |