Welcome Guest, Not a member yet? Register   Sign In
Asset handling in CodeIgniter with the BASE tag
#6

[eluser]BrianDHall[/eluser]
Great stuff, thanks!

As a spot of extra fun, I use:

Code:
if (strstr($_SERVER['HTTP_HOST'], 'localhost'))
{
    $GLOBALS['live'] = false;

}
else
{
    $GLOBALS['live'] = true;

}

A simple hack to set a variable that I use in my database, and possibly other places, to do things only if they are on my computer and not the live server.


Messages In This Thread
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 07:01 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 08:03 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 08:15 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 08:30 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 08:53 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-22-2009, 10:19 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-23-2009, 05:26 AM
Asset handling in CodeIgniter with the BASE tag - by El Forum - 09-23-2009, 07:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB