Welcome Guest, Not a member yet? Register   Sign In
$baseURL ci 4 and ci3
#3

(This post was last modified: 04-23-2021, 08:53 AM by underware.)

(04-22-2021, 10:45 PM)kenjis Wrote:
(04-21-2021, 11:21 AM)underware Wrote: on ci3, $baseURL i setup as http://localhost/ci3/ , it worked correctly with end slash
but on ci4, $baseURL = 'http://localhost/ci4/' on .env and Config/App.php it come out with out end slash -> http://localhost/ci4
am i missing something or is this normal?  Huh
Where "it come out with out end slash" ?

on CI3
$config['base_url'] = 'http://localhost/ci3/'; if you do <?php echo base_url(); ?>, output is http://localhost/ci3/
$config['base_url'] = 'http://localhost/ci3'; if you do <?php echo base_url(); ?>, output is http://localhost/ci3
CI4
app.baseURL = 'http://localhost/ion/', or app.baseURL = 'http://localhost/ion if you do <?php echo base_url(); ?>, output is always http://localhost/ion
no end slash
Reply


Messages In This Thread
$baseURL ci 4 and ci3 - by underware - 04-21-2021, 11:21 AM
RE: $baseURL ci 4 and ci3 - by kenjis - 04-22-2021, 10:45 PM
RE: $baseURL ci 4 and ci3 - by underware - 04-23-2021, 05:38 AM
RE: $baseURL ci 4 and ci3 - by kenjis - 04-23-2021, 06:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB