title: Call to undefined method CI_Form_validation::set_fields()
body: <p>when i try to add my the query in CodeIgniter i get this undefined method CI_Form_validation::set_fields(). Here is my Controller THIS gives me error and I am not able to update or add an entry into my database</p>
  
  <pre><code>function __construct()
          {
              parent::__construct();
              #load library dan helper yang dibutuhkan
              $this-&gt;load-&gt;library(array('table','form_validation'));
              $this-&gt;load-&gt;helper('url');
              $this-&gt;load-&gt;model('siswa_model','',TRUE);
          }
  function add(){
              $this-&gt;_set_fields();
  
              #set common properties
              $data['title']='Tambah siswa baru';
              $data['message']='';
              $data['action']= site_url('siswa/addSiswa');
              $data['link_back']= anchor('siswa/index/','Back to list of siswas',array('class'=&gt;'back'));
  
              $this-&gt;load-&gt;view('siswaEdit',$data);
          }
  
          function addSiswa()
          {
              $data['title']='Tambah siswa baru';
              $data['message']='';
              $data['action']= site_url('siswa/addSiswa');
              $data['link_back']= anchor('siswa/index/','Back to list of siswas',array('class'=&gt;'back'));
  
              $this-&gt;_set_fields();
              $this-&gt;_set_rules();
  
              #run validation
              if ($this-&gt;form_validation-&gt;run() === FALSE) {
                  $data['message']='';
  
                  }
              else
              {
                  //save data
                  $siswa=array('nama'=&gt;$this-&gt;input-&gt;post('nama'),
                      'alamat'=&gt;$this-&gt;input-&gt;post('alamat'),
                      'jenis_kelamin'=&gt;$this-&gt;input-&gt;post('jenis_kelamin'),
                      'tanggal_lahir'=&gt; date('Y-m-d',strtotime($this-&gt;input-&gt;post('tanggal_lahir')))
                      );
  
                  $id=$this-&gt;siswa_model-&gt;save($siswa);
  
  
                  //set form input nama="id"
                  $this-&gt;form_validation-&gt;id=$id;
  
                  redirect('siswa/index/add_success');
              }
              $this-&gt;load-&gt;view('siswaEdit',$data);
          }
  
  function _set_fields()
          {
              $fields['id'] = 'id';
              $fields['nama'] = 'nama';
              $fields['alamat'] = 'alamat';
              $fields['jenis_kelamin'] = 'jenis_kelamin';
              $fields['tanggal_lahir'] = 'tanggal_lahir';
  
              $this-&gt;form_validation-&gt;set_fields($fields);
          }
  </code></pre>
  
  <p>can you help me to check the error? in function __construct already to edit become but its not working</p>
  
  <pre><code>$this-&gt;load-&gt;library(array('form_validation'));
  </code></pre>