title: Fatal error: Call to a member function initialize()
body: <p>I've controller like this</p>
  
  <pre><code>function view()
      {
          if($this-&gt;tank_auth-&gt;get_user_role_id() == 1){
              $users = null;
          }else{
              $users = $this-&gt;_get_users_id();
          }
          //count total rows of transaction list
          $this-&gt;db-&gt;where('user_id',$users);
          $this-&gt;db-&gt;from('book_packages');
          $config['base_url'] = base_url().'index.php/transaction/view';
          $config['total_rows'] = $this-&gt;db-&gt;count_all_results();
          $config['per_page'] = 10;
          $config['uri_segment'] = 3;
          $config['num_links'] = 1;
  
          /* this is config tag */
  
          $this-&gt;pagination-&gt;initialize($config);
          $data['total_rows'] = $config['total_rows'] ;
          $data['title'] = 'List transaction';
          $data['text'] = $this-&gt;transaction_model-&gt;view_transaction($config['per_page'],$this-&gt;uri-&gt;segment(3),$users);
          $data['pagecontent'] = "admin/view_transaction";
          $this-&gt;load-&gt;vars($data);
          $this-&gt;load-&gt;view('template');
  
      }
  </code></pre>
  
  <p>I echo this in the view <code>$this-&gt;pagination-&gt;create_links();</code>
  when I load the controller I got error like this</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  
  Message: Undefined property: Transaction::$pagination
  
  Filename: controllers/transaction.php
  
  Line Number: 804
  
  Fatal error: Call to a member function initialize() on a non-object in my directory
  </code></pre>
  
  <p>I don't know why, I already load the library pagination, helper url, the name of class with capital.
  and it's happen when I upload my code to hosting, but I not get any error when I load it in localhost.</p>
  
  <p>any help are really appreciated.
  Thank you very much.</p>