I was passing my arguments correctly by URL and then I don't know what's wrong with the variables
Message: Missing argument 1 for Welcome::index()
Filename: controllers/Welcome.php
Line Number: 10
Backtrace:
File: /var/www/html/proyecto/application/controllers/Welcome.php Line: 10 Function: _error_handler
File: /var/www/html/proyecto/index.php Line: 292 Function: require_once
Controller:
class Welcome extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->model('login_model');
}
public function index($password){
$this->load->view('header');
$this->load->view('index');
}
}
$route['welcome/(:any)'] = 'welcome/index/$1';codeigniter.com/user_guide/general/routing.html - Mr. EDindex($password = NULL)or something because $password I think would be a uri segment.http://localhost/index.php/welcome/1234- Mr. ED