Welcome Guest, Not a member yet? Register   Sign In
how to set a golbal constant-value?i want to use the variable anywhere without manual loading it
#1

[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....
#2

[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..
#3

[eluser]pistolPete[/eluser]
You can either create your own config file or define a constant in ./system/application/config/constants.php.




Theme © iAndrew 2016 - Forum software by © MyBB