title: Prestashop custom page with own template
body: <p>I am running my own prestashop theme and want to add a new page without the css.
  Therefore I added the three files php, controller and template. I placed the php in the root directory of my prestashop, added the controller to root/controllers/front and placed the template in root/themes/my-theme.<br>
  If I call <a href="http://localhost/prestashop/?page=custom-page" rel="nofollow noreferrer">http://localhost/prestashop/?page=custom-page</a>, I see the index start page, If I call localhost/prestashop/custom-page, I get a HTTP 404.<br>
  Can someone help me to get my page displayed?  </p>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
    include(dirname(__FILE__).'/config/config.inc.php');
    Tools::displayFileAsDeprecated();
  
    include(dirname(__FILE__).'/header.php');
  
    $smarty-&gt;display(_PS_THEME_DIR_.'custom-page.tpl');
  
    include(dirname(__FILE__).'/footer.php');
  </code></pre>
  
  <p>Controller: </p>
  
  <p>
  
  <pre><code>public function init(){
    parent::init();
  }
  
  public function initContent(){
    parent::initContent();
    $this-&gt;setTemplate(_PS_THEME_DIR_.'custom-page.tpl');
  }
  
  
  //public function setMedia(){
    //parent::setMedia();
    //$this-&gt;addCSS(_THEME_CSS_DIR_.'custom-page.css');
    //$this-&gt;addJS(_THEME_JS_DIR_.'custom-page.js');
  //}
  </code></pre>
  
  <p>}</p>
  
  <p>Template:  </p>
  
  <pre><code>&lt;div&gt;
   HELLO PAGE
  &lt;/div&gt;
  
  {literal}
    &lt;style type="text/css"&gt;
    &lt;/style&gt;
  {/literal}
  
  &lt;script type="text/javascript"&gt;
    {literal}
    {/literal}
  &lt;/script&gt;
  </code></pre>