title: The function exchanged call in php codeigniter
body: <p>I have the following Function : </p>
  
  <pre><code>public function add(){
      $this-&gt;load-&gt;view('backend/video/add');
  }
  
  public function addvideo(){
  
          $nama = $this-&gt;input-&gt;post('title');
          $url  = $this-&gt;input-&gt;post('url');
          $data = array('nama' =&gt; $title,
                      'url' =&gt; $url);
          if ($this-&gt;MTestimoni-&gt;add($data,$where = 'video')) {
              $this-&gt;session-&gt;set_flashdata('notif','Video berhasil ditambahkan');
              redirect(base_url('admin/video'));
          }else{
              $this-&gt;session-&gt;set_flashdata('gagal','Video gagal ditambahkan');
              redirect(base_url('admin/video'));
          }
  
  }
  </code></pre>
  
  <p>but when i call <strong>add()</strong> the function run function of <strong>addvideo()</strong> and vice versa, i dont now why the function exchanger run function</p>