title: how make to form search in CodeIgniter using two fields
body: <p>I want to make a search form in Codeigniter using two fields.
  But I'm confused about making the controller and model.</p>
  
  <p>View:</p>
  
  <pre><code>echo form_open("home/pencarian","class='form-inline navbar-search'");   
  
  &lt;input id="srchFld" class="srchTxt" name="keyword" type="text" value=" echo $this-&gt;session-&gt;userdata("keyword");" /&gt;
  &lt;select class="srchTxt" name="kategori"&gt;
      &lt;option&gt;All&lt;/option&gt;
      foreach ($kat as $kategori){
          $id = $kategori['id'];
          $nama_kategori = $kategori['nama_kategori'];
          $created_at = $kategori['created_at'];
          &lt;option value=" echo $id;  ?&gt;"&gt;&lt;?php echo $nama_kategori; &lt;/option&gt;
      } 
  &lt;/select&gt; 
  
  echo form_submit('action', 'Cari', "class='btn btn-primary'");
  echo form_close(); 
  </code></pre>
  
  <p>How do I make the controller and model?</p>