title: Include files inside modules folder in Prestashop
body: <p>I have created a subfolder inside my store in Prestashop inside the <strong>/classes/</strong> subdirectory with the name <strong>service</strong> (e.g <strong>/classes/service/</strong>).</p>
  
  <p>I'm trying to include the php file of a module that I have created myself to access to its methods with the following line of code inside a class that I have created inside <strong>/classes/service/</strong> :</p>
  
  <pre><code>include(dirname(__FILE__).'/../../modules/mymodulename/mymodulename.php')';
  
  class A {    
        .
        .
        .
  
        public function callmodule(){
             $obj = new MyModuleName();
             $obj-&gt;someMethod();
        }
  
  }
  </code></pre>
  
  <p>I use it in the include the <code>/../../</code> to go two directories up, one to get out to  the <strong>service</strong> folder and another one to get out to the <strong>root</strong> folder of the store, but the problem is that the above line is not returning anything when I call it, only gave me a blank page without errors or warning and if I delete it's works fine, but I need to access to this file.</p>
  
  <p>There is a better way to access to the file without errors ?</p>
  
  <p><strong>PD</strong> : When I mean call the class <strong>A</strong> it's because I put a rule inside my <em>.htaccess</em> to redirect a specific call to some class like a dispatcher where the <strong>A</strong> class its called. </p>