Welcome Guest, Not a member yet? Register   Sign In
how to: conditonal config
#1

Hi,

I want to be able to change the cache dir depending whether or not a suer is logged in.

I'm trying to do this from within the head.php view and have tried a bunch of methods including:

 $CI =& get_instance(); 
 if ($cust > 0) { 
 $config['cache_path'] = '/location/to/my/install/application/cache2';
 }


What is the correct syntax please?

Thanks a lot.
Reply


Messages In This Thread
how to: conditonal config - by starchild - 11-08-2015, 04:08 PM
RE: how to: conditonal config - by sintakonte - 11-09-2015, 05:04 AM
RE: how to: conditonal config - by starchild - 11-09-2015, 05:07 AM
RE: how to: conditonal config - by starchild - 11-11-2015, 08:24 PM
RE: how to: conditonal config - by mwhitney - 11-13-2015, 08:54 AM
RE: how to: conditonal config - by starchild - 11-23-2015, 08:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB