Welcome Guest, Not a member yet? Register   Sign In
404 Controller or its method is not found
#1

(This post was last modified: 06-26-2023, 03:49 PM by SKPAdam.)

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

Using subfolder is difficult to configure.
I recommend you use subdomain (e.g., ci4app.mywebsite.com) instead of subfolder if you can.
Reply
#3

(06-26-2023, 04:08 PM)kenjis Wrote: Using subfolder is difficult to configure.
I recommend you use subdomain (e.g., ci4app.mywebsite.com) instead of subfolder if you can.

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

You need the subfolder ci4app in your document root of the web server.
Reply
#5

(06-26-2023, 07:42 PM)kenjis Wrote: You need the subfolder ci4app in your document root of the web server.

It is/was although it was named differently ex ci-4-app-code/.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB