0
I have a View with a nav-link:
href= echo base_url("application/controllers/Login_controller.php")
By clicking I am redirected to the correct path.
http://localhost/local/acjum1/application/controllers/Login_controller.php
However, a message appears saying "No direct script access allowed".
This is my class Login_controller
<?php
defined('BASEPATH') OR exit ('No direct script access allowed');
class Login_controller extends CI_Controller {
public function index()
{
$this->load->view("login/Login_view");
}
}
What’s wrong with it?
it is complicated to answer, you have to read the documentation because your mistake is in all codes.
– novic