title: Get steps and page. OpenCart
body: <p>I am trying to get $steps and $page.</p>
  
  <p>I tried this:</p>
  
  <pre><code>$steps = $myAPI-&gt;cleanPost($_POST['steps']);
  $page = $myAPI-&gt;cleanPost($_POST['page']);
  </code></pre>
  
  <p>But i don't get something.</p>
  
  <p>In PrestaShop we did it like this:</p>
  
  <pre><code>$page = (trim(Tools::getValue('page')) &gt; 0) ? trim(Tools::getValue('page')) : 0;
  $steps = trim(Tools::getValue('steps'));
  </code></pre>
  
  <p>And in Magento like this:</p>
  
  <pre><code>$page = (trim($app-&gt;getRequest()-&gt;getParam('page')) &gt; 0) ? trim($app-&gt;getRequest()-&gt;getParam('page')) : 0;
  $steps = trim($app-&gt;getRequest()-&gt;getParam('steps'));
  </code></pre>
  
  <p>Does someone know how I can do this with OpenCart?</p>
  
  <p>Thanks</p>