title: cakephp search form with empty variables
body: <p>I'm trying to do a search form in my cakephp 2.5 project.
  Here is my view where form is created:</p>
  
  <pre><code>&lt;?php 
  echo $this-&gt;Form-&gt;create('Product', array('action' =&gt; 'complete_search')); 
      echo $this-&gt;Form-&gt;input('searchName', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'form-control', 'autocomplete' =&gt; 'off')); 
      echo $this-&gt;Form-&gt;input('searchCity', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'form-control', 'autocomplete' =&gt; 'off'));
      echo $this-&gt;Form-&gt;button('Search', array('div' =&gt; false, 'class' =&gt; 'btn btn-sm btn-primary'));
  echo $this-&gt;Form-&gt;end(); 
  ?&gt;
  </code></pre>
  
  <p>My ProductsController :</p>
  
  <pre><code>public function complete_search(){
      if (!empty($this-&gt;request-&gt;data['searchName']) &amp;&amp; !empty($this-&gt;request-&gt;data['searchCity'])) {
          $keywordSearch = $this-&gt;request-&gt;data['searchName'];
          $keywordSearchCity = $this-&gt;request-&gt;data['searchCity'];
      }else{
  
          $keywordSearch = 'test';
          $keywordSearchCity = 'testCity';
      }
  
      $products = $this-&gt;Product-&gt;find('all', array(
          'recursive' =&gt; -1,
          'contain' =&gt; array(
              'Brand'
          ),
          'conditions' =&gt; array(
              'AND' =&gt; array(
                  'Brand.active' =&gt; 1,
                  'Product.active' =&gt; 1,
                  'Product.date_discount &gt;' =&gt; date('Y-m-d H:i:s'),
                  'Product.name LIKE' =&gt; '%' . $keywordSearch . '%',
                  'Brand.city LIKE' =&gt; '%'. $keywordSearchCity .'%'
              )
          ),
          'limit' =&gt; 200,
      ));
  
      $products = $this-&gt;paginate($products);
  
      $this-&gt;set(compact('products'));
  }
  </code></pre>
  
  <p>And I have a complete_search.ctp to show the results.</p>
  
  <p>The problem is that <code>$keywordSearch</code> and <code>$keywordCity</code> are always empty... And I don't know why. What's wrong with my form? </p>