title: How to ajax request to custom page in prestashop 1.7
body: <p>Am apology for my bad english. Am new to prestashop. Please anybody help. How to send AJAX request to custom php file in prestashop </p>
  
  <pre><code>//My js file
       $.ajax({
       url : baseUrl + "modules/&lt;myModule&gt;/ajaxfunc.php",
       type: "POST",
       cache: false,
       data : {form_data: 1 , action:'imageuploadAction'},
  
       beforeSend: function() {
       $('body').append('&lt;div class="loading_popup"&gt;Loading...&lt;/div&gt;');},        
  
      success: function(data){
      console.log(data);
         }
        });
  
  // php file
  // modules/&lt;myModule&gt;/ajaxfanc.php
  
     &lt;?php
     include_once('../../config/config.inc.php');
     include_once('../../init.php');
     class ajaxfuncAjaxModuleFrontController extends ModuleFrontController
      {
      public function  imageuploadAction() {
       die('here');
      }
     }
     ?&gt;
  </code></pre>
  
  <p>I didn't know its be correct or not. please guide me.</p>