I'm starting with CodeIgniter and I'm having a little trouble linking the pages.
I'm doing it this way:
<li class="nav-item mr-3">
<a class="nav-link page-scroll" href="<?php echo base_url('nomeApp/login');?>">Login</a>
</li>
My controller is like this
class Homepage extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->helper('url');
}
public function index()
{
$this->load->view('veloxmob/index');
}
public function login()
{
$this->load->view('login/login');
}}