Welcome Guest, Not a member yet? Register   Sign In
how to get database 'active_group' value in a controller?
#1

[eluser]litzinger[/eluser]
How do I get the value of the 'active_group' variable in the database.php file in a controller? I need to turn off certain functionality of my site if I'm in the development environment.
#2

[eluser]litzinger[/eluser]
Ok, I just used:

Code:
if($this->db->hostname != 'mydevhost'){
//do something
}

This does the trick, though I'd still like to know if there is a way to reference the active_group in a controller, view, or model.




Theme © iAndrew 2016 - Forum software by © MyBB