title: loading views in editing record in codeigniter
body: <p>Hello I am new to codeigniter. I am learning this framework by developing a testing application. I am showing user listing and in front of each record an anchor tag to edit that record. That anchor tag looks like</p>
  
  <pre><code>echo(anchor('first/edit_user/'.$value-&gt;id,'Edit'));
  </code></pre>
  
  <p>It redirects the browser to first controller and edit_user function. At edit_user function I load the view of edit like this.</p>
  
  <pre><code>$this-&gt;load-&gt;view('edit_user',$data);
  </code></pre>
  
  <p>It loads the view with respect to selected record to edit the record and the url looks like</p>
  
  <pre><code>http://localhost/CodeIgniter/index.php/first/edit_user/9 
  </code></pre>
  
  <p>Every thing works fine. But when user clicks the update button it again comes to same function. It updates record and then again tries to load the same view but here a problem occurs. Now after updating record it loads the view and url becomes like this</p>
  
  <pre><code>http://localhost/CodeIgniter/index.php/first/edit_user
  </code></pre>
  
  <p>It creates error as it is not having the id of the selected record. IF i change the load view code of my function like this </p>
  
  <pre><code>          $this-&gt;load-&gt;view('edit_user/'$this-&gt;uri-&gt;segment(3)),$data);
  </code></pre>
  
  <p>It generates an error of edit_user/.php is not defined and some thing like that. Now I want to ask How can I Redirect the user to same edit form telling that his record has been updated? How to load the view of 
  selected record from function of the controller?</p>