Queries and SolutionsCategory: CodeIgniterError in Codeigniter 4 – No direct script access allowed
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

5 + 2 =