title: Getting my nav menu to work with CodeIgniter
body: <p>Basically I have two controllers using CodeIgniter for a simple blog for a project at school. 
  One is Home which is the login page. The other is Member for when they are signed in. in this member controller I am creating functions for add_post(), view_users_posts(), etc.
  Member.php</p>
  
  <pre><code>class Member extends CI_Controller{
  
  function __construct(){
      parent::__construct();
      $is_logged_in = $this-&gt;session-&gt;userdata('is_logged_in');
      if (!isset($is_logged_in) || $is_logged_in !== true) {
          redirect('home');
      }
  }
  
  public function index() {
      $this-&gt;load-&gt;library('pagination');
  
      $config['base_url'] = base_url() . 'index.php/member/index/';
      $config['total_rows'] = $this-&gt;db-&gt;get('posts')-&gt;num_rows();
      $config['per_page'] = 5;
      $config['num_links'] = 20;
  
      $this-&gt;pagination-&gt;initialize($config);
  
      $data['posts'] = $this-&gt;posts_model-&gt;get_all_posts($config['per_page'], $this-&gt;uri-&gt;segment(3));
      $this-&gt;load-&gt;view('member_view', $data);
  }
  
  public function add_post() {
      $this-&gt;load-&gt;view('add_post_view');
  }
  </code></pre>
  
  <p>My member view has a nav menu with links to these functions like so:
  member_view.php</p>
  
  <pre><code>      &lt;li&gt;&lt;a href="member"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="member/add_post"&gt;Add Post&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="member/view_users_posts"&gt;My Posts&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="member/reset_pass"&gt;Reset Password&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="member/logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I haven't finished them as I am having trouble knowing what to code. Basically if the user clicks Add Post should it refer to the function add_post in the controller which will load a view called add_post? Or should it direct to a new controller called Add_post that will load the view?</p>
  
  <p>My reason is if I click add post it takes me to member/add_post but when I click back home I get member/member then add post again I get member/member/add_post.</p>
  
  <p>I hope this makes sense, I am at a total loss. Thanks for any help!</p>