title: How to get url params in cakephp?
body: <p>I am using cakephp 2.6.7:
  I have a password reset url like:
  <a href="http://www.jegeachi.com/resellers/resetpw/9610f4e33d96ad6189c5a779ab90f10aBXX1066056669XXB12/" rel="nofollow">http://www.jegeachi.com/resellers/resetpw/9610f4e33d96ad6189c5a779ab90f10aBXX1066056669XXB12/</a></p>
  
  <p>Here resellers is the controller and resetpw is the action and 9610f4e33d96ad6189c5a779ab90f10aBXX1066056669XXB12 is the argument I want to pass into resetpw function. </p>
  
  <p>Now in resetpw.ctp:</p>
  
  <pre><code>&lt;style type="text/css"&gt;
      .alert {
          padding: 6px;
          margin-bottom: 5px;
          border: 1px solid transparent;
          border-radius: 4px;
          text-align: center;
      }
      .alert.alert-error {
          background: #A9B0B5;
          color: #EF5858;
          font-weight: normal;
      }
  
  &lt;/style&gt;
  &lt;div class="page-content-wrapper"&gt;
      &lt;div class="page-content"&gt;
          &lt;!-- BEGIN PAGE CONTENT--&gt;
          &lt;div class="content"&gt;
  
              &lt;!-- BEGIN LOGIN FORM --&gt;
  
              &lt;?php
              echo $this-&gt;Form-&gt;create('Reseller', array(
                  'inputDefaults' =&gt; array(
                      'label' =&gt; false,
                      'div' =&gt; false
                  ),
                  'class' =&gt; 'login-form',
                  'url' =&gt; array('controller' =&gt; 'resellers', 'action' =&gt; 'resetpw')
                      )
              );
              ?&gt;
  
  
  
  
              &lt;h3 class="form-title"&gt;Type your new password&lt;/h3&gt;
              &lt;div class="alert alert-danger display-hide"&gt;
                  &lt;button class="close" data-close="alert"&gt;&lt;/button&gt;
                  &lt;span&gt;
                      Enter your new password first. &lt;/span&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;
                  &lt;label class="control-label visible-ie8 visible-ie9"&gt;New Password&lt;/label&gt;
                  &lt;div class="input-icon"&gt;
                      &lt;i class="fa fa-lock"&gt;&lt;/i&gt;
  
                      &lt;?php
                      echo $this-&gt;Form-&gt;input(
                              'password', array(
                          'class' =&gt; 'form-control placeholder-no-fix',
                          'type' =&gt; 'password',
                          'autocomplete' =&gt; 'off',
                          'placeholder' =&gt; 'New Password'
                              )
                      );
                      ?&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="form-actions"&gt;
                  &lt;?php
                  echo $this-&gt;Form-&gt;button(
                          'Reset Password &lt;i class="m-icon-swapright m-icon-white"&gt;&lt;/i&gt;', array(
                      'class' =&gt; 'btn blue pull-right',
                      'type' =&gt; 'submit',
                      'escape' =&gt; false
                          )
                  );
                  ?&gt; 
  
              &lt;/div&gt;
  
              &lt;?php echo $this-&gt;Form-&gt;end(); ?&gt;
              &lt;!-- END LOGIN FORM --&gt;
  
  
          &lt;/div&gt;
          &lt;!-- END PAGE CONTENT --&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- END CONTENT --&gt; 
  </code></pre>
  
  <p>Inside resellers action:</p>
  
  <pre><code>function resetpw($a){
      $this-&gt;layout = "public-login";
      $this-&gt;loadModel('Reseller');
      if ($this-&gt;request-&gt;is('post')) {
          echo 'a : '.$a;
          pr($this-&gt;params['url']); exit;
          $a = func_get_args();
      $keyPair = $a[0];
      $key = explode('BXX', $keyPair);
      $pair = explode('XXB',$key[1]);
      $key = $key[0];
      $pair = $pair[1];
      $password = $this-&gt;request-&gt;data['Reseller']['password'];
      unset($this-&gt;request-&gt;data['Reseller']['password']);
      $uArr = $this-&gt;Reseller-&gt;findById($pair);
      if($uArr['Reseller']['resetkey'] == $key) {
          $this-&gt;Reseller-&gt;read(null, $pair);
          $this-&gt;Reseller-&gt;set('password', $password);
          if($this-&gt;Reseller-&gt;save()) { 
              $msg = ' &lt;div class="alert alert-success"&gt;
                              &lt;button type="button" class="close" data-dismiss="alert"&gt;×&lt;/button&gt;
                              &lt;strong&gt;Your password has been reset&lt;/strong&gt; 
                          &lt;/div&gt;'; 
          } else {
                $msg = ' &lt;div class="alert alert-error"&gt;
                              &lt;button type="button" class="close" data-dismiss="alert"&gt;×&lt;/button&gt;
                              Something has gone wrong. Please try later or &lt;strong&gt;sign up again&lt;/strong&gt; 
                          &lt;/div&gt;'; 
              }
          } else {
              $msg = ' &lt;div class="alert alert-error"&gt;
                  &lt;button type="button" class="close" data-dismiss="alert"&gt;×&lt;/button&gt;
                      &lt;strong&gt;Invalid link.Please check your reset link&lt;/strong&gt; Invalid link.Please check your reset link
                          &lt;/div&gt;'; 
          } 
  
          $this-&gt;Session-&gt;setFlash($msg);
  
          $this-&gt;redirect(array('controller'=&gt;'resellers', 'action' =&gt; 'login'));
  
      }    
  }
  </code></pre>
  
  <p>Here I want to catch the url data  <strong>9610f4e33d96ad6189c5a779ab90f10aBXX1066056669XXB12</strong>
  But none of the following printing my data:</p>
  
  <pre><code>    echo 'a : '.$a;
      pr($this-&gt;params['url']); exit; 
  </code></pre>
  
  <p>How can I get this url value.</p>