Error in Codeigniter 4 – No direct script access allowed Queries and Solutions › Category: CodeIgniter › Error in Codeigniter 4 – No direct script access allowed 0 Vote Up Vote Down bestonetechnologies Staff asked 2 years ago My code in CI 4 is: namespace App\Controllers;use App\Models\AbcModel; class Login extends BaseController { function __construct() { $this->AbcModel = new AbcModel(); } } But getting error: No direct script access allowed Your Answer Visual Text 5 + 2 = Your Email Your Name Public Only Me & Admin