Welcome Guest, Not a member yet? Register   Sign In
Attaching users id to my url structure
#17

[eluser]RalphLeMouf[/eluser]
Okay big breakthrough news! I'm able to get it to display the proper url with the users id off a link in the view like so:

Code:
<a href="/account/profile/&lt;?php echo $user['id']; ?&gt;">view me profile</a>

However - getting back to the main problem. I am unable to generate the SAME page and results off of my controller loading the same view. In other words, when I'm on the profile already I'm able to navigate but GENERATING the results from my controller I'm unable to.

Here is the controller:

Code:
public function profile()
{

     $this->load->helper('date');
     $this->load->library('session');
     $session_id = $this->session->userdata('id');
     $this->load->model('account_model');
     $user = $this->account_model->user();
     $data['user'] = $user;
     $data['profile_icon'] = 'profile';
     $data['main_content'] = '/account/profile/'.$user['id'];
     $this->load->view('includes/templates/profile_template', $data);

}


Messages In This Thread
Attaching users id to my url structure - by El Forum - 02-06-2013, 11:30 AM
Attaching users id to my url structure - by El Forum - 02-06-2013, 12:34 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 03:44 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 04:00 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 04:20 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 06:15 PM
Attaching users id to my url structure - by El Forum - 02-11-2013, 03:57 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 07:15 AM
Attaching users id to my url structure - by El Forum - 02-12-2013, 01:43 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 04:06 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 05:10 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 05:31 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 07:43 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 08:20 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 10:52 PM
Attaching users id to my url structure - by El Forum - 02-13-2013, 11:21 AM
Attaching users id to my url structure - by El Forum - 02-13-2013, 02:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB