title: unknown method in REST API in CODEIGNITER
body: <p>When I try to load the form data in browser it shows this error</p>
  
  <blockquote>
    <p><strong>{"":"Unknown method"}</strong>  </p>
  </blockquote>
  
  <p>HOW TO SOLVE  </p>
  
  <p>This is the controller code in REST API using Codeigniter.</p>
  
  <p>Help me to get out from this problem.......</p>
  
  <p>
  
  <pre><code>require(APPPATH.'/libraries/REST_Controller.php');
  
  class Api extends REST_Controller{
  
      public function __construct()
      {
          parent::__construct();
        //  $this-&gt;CI-&gt;lang-&gt;load('form_validation');
          $this-&gt;load-&gt;model('book_model');
          $this-&gt;load-&gt;helper('url');
  
      }
  
      public function view_get(){
          $this-&gt;load-&gt;helper('form');    
  
      }
      public function display_post(){
          $this-&gt;load-&gt;helper('form');
          $this-&gt;load-&gt;view('add');
      }
  }
  </code></pre>
  
  <p>Add.php code is here, I want to display the data in webpage through the controller but when I run this code it shows an error</p>
  
  <blockquote>
    <p><strong>{"":"Unknown method"}</strong></p>
  </blockquote>
  
  <p>url: <strong><a href="http://localhost/code-restfullAPI/index.php/API/display" rel="nofollow noreferrer">http://localhost/code-restfullAPI/index.php/API/display</a></strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;form method="POST" action="&lt;?php site_url('index.php/Api/addBook_post'); ?&gt;"&gt;
  
  Name:&lt;br&gt;
  &lt;input type="text" name="name" &gt;
  &lt;br&gt;
  Price:&lt;br&gt;
  &lt;input type="text" name="price" &gt;
  &lt;br&gt;
  Author:&lt;br&gt;
  &lt;input type="text" name="author" &gt;
  &lt;br&gt;
  Category:&lt;br&gt;
  &lt;input type="text" name="category" &gt;
  &lt;br&gt;
  Language:&lt;br&gt;
  &lt;input type="text" name="language" &gt;
  &lt;br&gt;
  ISBN:&lt;br&gt;
  &lt;input type="text" name="isbn" &gt;
  &lt;br&gt;
  Publish Date:&lt;br&gt;
  &lt;input type="text" name="publish_date" &gt;
  &lt;br&gt;
  &lt;input type="submit" value="Add"&gt;
  &lt;/form&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>