title: How to call overrider controller from html form
body: <p>Like in topic. How can I call the overrider controller from html form like this below:</p>
  
  <pre><code>&lt;form method="post" action="index.php?controller=CmsController"&gt;
      &lt;input name="test" type="text" /&gt;
      &lt;input name="action" value="getStatus" type="hidden" /&gt;
      &lt;input value="test" type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This code above I have in my tpl file.</p>
  
  <p>File: /override/controllers/front/CmsController.php</p>
  
  <p>---edit</p>
  
  <pre><code>{$link-&gt;getModuleLink('blockcms', 'CmsController')|escape:'html'}
  </code></pre>
  
  <p>doesn’t work.</p>
  
  <p>---edit</p>
  
  <pre><code>public function initContent() {
      parent::initContent();
  
      if (Tools::getValue('action') &amp;&amp; Tools::getValue('action') == 'getStatus') {
          $id = $this-&gt;getIdByCode(Tools::getValue('voucher'));
          $obj = new CartRuleCore($id);
          $context = Context::getContext();
          $response = $obj-&gt;checkValidity($context);
          if ($response == NULL or $response == 'Koszyk jest pusty'){
              $response = 'Kod ';                
          }
      }
  
  if (isset($this-&gt;cms)) {
              $this-&gt;cms-&gt;content = str_replace("&lt;!--response--&gt;", $response, "{$this-&gt;cms-&gt;content}");
          }
          $this-&gt;setTemplate(_PS_THEME_DIR_ . 'cms.tpl');
  </code></pre>
  
  <p>This is part of initContent function in \override\controllers\front\CmsController.php And in my file tpl I have</p>
  
  <pre><code>&lt;form method="post" action="index.php?controller=CmsController"&gt;
  &lt;input name="test" type="text" /&gt;
  &lt;input name="action" value="getStatus" type="hidden" /&gt;
  &lt;input value="test" type="submit" /&gt;
  </code></pre>
  
  <p></p>