![]() |
hi,
I am converting my CI3 application to CI4. I am facing this error No direct script access allowed I have included the following code, but it always, says Code: No direct script access allowed Code: <?php
BASEPATH is not defined in CI4.
Remove the line "defined('BASEPATH') OR exit('No direct script access allowed');", or define BASEPATH by yourself.
I recommend you remove the line in all your files.
Because it is not necessary in CI4. Add this in app/Config/Constants.php: PHP Code: define('BASEPATH', 'whatever'); |
Welcome Guest, Not a member yet? Register Sign In |