redirect url helper redirect to localhost |
(05-13-2015, 12:44 AM)rtorralba Wrote:(05-12-2015, 10:42 AM)CroNiX Wrote:(05-08-2015, 01:53 AM)rtorralba Wrote: can be a problem because we must to define a base_url per environment. Hi, I viewed that in ci3 has ENVIRONMENT constant defined in index file, in ci 2 I also defined, then, although I think is better maintain current domain, but it can be done the following: $config['base_url'] = ENVIRONMENT == 'development' ? 'domain.dev' : 'domain.com'; Greetings. |
Welcome Guest, Not a member yet? Register Sign In |