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

#1
hi,

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.

Thanks
Reply

#2
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
Reply

#3
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.
Reply

#4
htdocs
-- 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 )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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