title: using this when including in php
body: <p>in for example magento they have php seperated from phtml.</p>
  
  <p>I also do the same thing.
  But I can't figure one thing out, and that is:</p>
  
  <p>When I have this php script:</p>
  
  <pre><code>class aclass extends main{
  public function redirect(){
      require_once($this-&gt;frontend_folder . $this-&gt;admin_folder . "beheer/edit_account.phtml");
  }
  
  public function nav_menu(){
      return "&lt;nav&gt;some nav menu things in here&lt;/nav&gt;";
  }
  </code></pre>
  
  <p>and the "view" phtml script:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;  
      &lt;div id="wrap"&gt;
          &lt;?php
             echo $this-&gt;nav_menu();
          ?&gt;
      &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>"$this" doesn't work, but how can I get this working?</p>