title: Cakephp 3 : How to receive get request data?
body: <p>I have written ajax to send search key, I have tried below code </p>
  
  <pre><code>$.ajax({
                method:'GET',
                url:'&lt;?php echo Router::url(['action' =&gt; 'product_search']); ?&gt;',
                data:{search:search},
                success: function(data)
                {
                  $('.fetch-data').html(data);
                }
  });
  </code></pre>
  
  <p>Then I have received it in product controller like </p>
  
  <pre><code>if ($this-&gt;request-&gt;is(['get'])) {
               $search   = $this-&gt;request-&gt;data('search');       
  }
  </code></pre>
  
  <p>Here <code>$search</code> is null. If I use <code>POST</code> in here then it's working fine. How can I receive this data by get method ?</p>