title: Call a prestashop module with ajax
body: <p>I have a PrestaShop module called 'MyMenu' and I want call this menu with an AJAX call.
  My module is displayed in the <code>hookFooter()</code> method:</p>
  
  <pre><code>public function hookFooter()
  {
      $display = $this-&gt;display(__FILE__, 'megamenu.tpl', $smartyCacheId);
      Tools::restoreCacheSettings();
      return  $display;
  }
  </code></pre>
  
  <p>I want display with this script:</p>
  
  <pre><code>&lt;div class="load_menu"&gt;&lt;/div&gt;
  &lt;script&gt;
      $(document).ready(function (e) {
          $.ajax({
              method: "POST",
              url: "../modules/MyMenu.php",
              data: {},
              success: function (data) {
                  $('.load_menu').html(data);
              }
          })
      });
  &lt;/script&gt;
  </code></pre>