I am really stuck with this problem
in CodeIgniter i have controller named user.php
and it has two function getUser() and save()
when I try to call http://localhost/CodeIginter/index.php/user/save
it always call getUser function why ?
class user extends CI_Controller
{
function __construct()
{
parent::__construct();
}
function getUser()
{
$this->load->model('usermodel');
$data['query'] = $this->usermodel->get_last_ten_entries();
$this->load->view('users',$data);
}
function save()
{
$this->load->model('usermodel');
$this->usermodel->insert_entry();
$this->load->view('users');
}
}
my .htaccess file contain
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
and i am also unable to load another controller that is helloworld.php