• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing default controller


Just installed beta2.

For some reason I can't access the default controller by just going to http://localhost:8080/mysite/

only by going to http://localhost:8080/mysite/public

I have changed the baseUrl to

PHP Code:
public $baseURL 'http://localhost:8080/mysite/'

also in the env file.


It sounds like you are pointing your document root to the folder above your project, eg "htdocs".
The doucment root should point to your project's public folder, eg "htdocs/myproject/public".
You would then reference your site as "localhost:8080".
See https://codeigniter4.github.io/CodeIgnit...nning.html

Well, CI is installed into http://localhost:8080/mysite/

I didn't copy the CI files directly into the htdocs folder because I have a bunch of other projects there.

-- project_name
---- app
---- system
---- public
------ index.php
------ assets
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.