404 error on simple controller |
Hi.
I previously used CI 3 and i am new to CI 4. My URL is accessible in : Code: http://localhost/my_git/ci4/public/ I have a simple controller like this PHP Code: <?php namespace App\Controllers; I have adjusted my app/Config/App.php : PHP Code: public $baseURL = 'http://localhost/my_git/ci4/public/'; My problem is : if i open Code: http://localhost/my_git/ci4/public/index.php/Cron/test/ I am redirected to Code: http://localhost/index.php/Cron/test But if i open Code: http://localhost/my_git/ci4/public/index.php/Cron/test/abcdefg It works correctly to the controller. I have not modified routes. Is there anything i should check? Thank you. |
Messages In This Thread |
404 error on simple controller - by newcicoder - 07-30-2020, 06:30 AM
RE: 404 error on simple controller - by jreklund - 08-01-2020, 06:27 AM
RE: 404 error on simple controller - by newcicoder - 08-01-2020, 06:54 AM
RE: 404 error on simple controller - by jreklund - 08-01-2020, 06:57 AM
RE: 404 error on simple controller - by newcicoder - 08-01-2020, 07:04 AM
RE: 404 error on simple controller - by jreklund - 08-01-2020, 08:40 AM
RE: 404 error on simple controller - by paulbalandan - 08-01-2020, 09:47 AM
RE: 404 error on simple controller - by newcicoder - 08-01-2020, 07:15 PM
|