Welcome Guest, Not a member yet? Register   Sign In
how to define global variable use in whole site?

in the query i want to give table name from global array for use in whole site.

[eluser]Abdul Malik Ikhsan[/eluser]
$ci = & get_instance();
$ci->var = 'value';

from where i can define it i mean which file config.php or anywhere ?

I'd suggest you put these kind of things in constants defined in ./application/config/constants.php so you can access them side wide.

Theme © iAndrew 2016 - Forum software by © MyBB