[eluser]benners[/eluser]
Thanks for your comments. I've found the following seems to work.
Code:
public function _remap($method, $params = array())
{
if (method_exists($this, $method)) {
return call_user_func_array(array($this, $method), $params);
} else {
$user_info = $this->membership_model->get_member($method);
if(count($user_info) > 0){
// Display the user with the profile page.
$data['user_info'] = $user_info;
$data['main_content'] = 'profile_view';
$this->load->view('includes/template', $data);
} else {
show_404();
}
}