404 Controller or its method is not found |
CI is looking at the subdirectory to use as the controller (auto route - no routes), I even set up a route to try to direct it but it still looks at the wrong url segment https://codeigniter4.github.io/userguide...i-segments
Ex: mywebsite.com/ci4app/home/participantlogin PHP Code: Controller or its method is not found: \App\Controllers\Ci4app::home it thinks ci4app is the controller, it is really home CI_VERSION = '4.3.6'
Using subfolder is difficult to configure.
I recommend you use subdomain (e.g., ci4app.mywebsite.com) instead of subfolder if you can. (06-26-2023, 04:08 PM)kenjis Wrote: Using subfolder is difficult to configure. It would take a bit to migrate, I was trying not to have to do that. It seems like there should be a setting in autoroutes where you can set a base_url something.
You need the subfolder ci4app in your document root of the web server.
|
Welcome Guest, Not a member yet? Register Sign In |