redirect url helper redirect to localhost |
(05-13-2015, 07:47 AM)mwhitney Wrote: In most cases, redirect('controller/method') should still work in this manner without setting the base_url, though you should set the base_url anyway. If it doesn't work, it would imply that site_url('controller/method') is not working, either. When base_url is not set redirect('controller/method') redirect to http://localhost/index.php/controller/method, the other projects in ci 2 redirect to the current domain (http://example.dev/index.php/controller/method). I think that something change in ci 3 because the documentation in config file has changed, now in ci 3 say that is recomended set this value. Greetings. |
Welcome Guest, Not a member yet? Register Sign In |