You can access Model page directly in view page without access Controller page in Codeigniter framework, use this method $this->Model->get_user_details();
If you want to pass a variable value by model function name from view page, so use this example code:
$variable=$_POST["field_name"]; $this->Model->get_user_details($variable);
Question and answer is powered by AnsPress.io