title: Call to undefined method CI_Input::get_cookie() - Code Igniter
body: <p>I'm trying to make a call to the get_cookie() method from the input library but I am receiving this error.</p>
  
  <p>"Fatal error: Call to undefined method CI_Input::get_cookie() "</p>
  
  <p>I've loaded the helper for cookie and have used the call set_cookie() in the parent function.  I'm not sure if this should be an issue.</p>
  
  <p>Here is the code that is creating the error.</p>
  
  <pre><code>    class Main extends MY_Controller
      {
          function __construct()
          {
              parent::__construct();
  
              //load library
              $this-&gt;load-&gt;helper('cookie');
  
              echo "Welcome controller&lt;br&gt;";
  
          }
  
          function index()
          {   
  
  
              //get platform cookie
              $_platform = $this-&gt;input-&gt;get_cookie('platform'); //&lt;-ERROR
  
              if (!$this-&gt;tank_auth-&gt;is_logged_in()) {
                  redirect('/auth/login/');
              } else {
                  $data['user_id']    = $this-&gt;tank_auth-&gt;get_user_id();
                  $data['username']   = $this-&gt;tank_auth-&gt;get_username();
                  $data['platform']   = $_platform['value'];
                  $this-&gt;load-&gt;view('welcome', $data);
              }
          }
      }
  </code></pre>