Welcome Guest, Not a member yet? Register   Sign In
How to display a users personal page from URL - mysite/username
#6

[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();
   }
  }


Messages In This Thread
How to display a users personal page from URL - mysite/username - by El Forum - 02-28-2012, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB