title: Magento $this-> function with AJAX
body: <p>I created a page with product data, which is included in the home through the "require". When i open the home, it works perfectly.</p>
  
  <pre><code>&lt;?php require ("$path/public_html/page.php"); ?&gt;
  </code></pre>
  
  <p>But i have an AJAX code that includes this same page, with some extra functions, ex:</p>
  
  <pre><code>... .load('http://www.website.com/page.php?id='+code)
  </code></pre>
  
  <p>When the page is requested, it stops in the $this-> function and return 500 Internal Server Error:</p>
  
  <pre><code> $this-&gt;getPriceHtml($_product, true,
  </code></pre>
  
  <p>Why the $this-> function does not work with AJAX?</p>