title: Autocomplete object property in netbeans
body: <p>Maybe it will be a very lame question, but i just try.
  I built my own MVC framework. </p>
  
  <p>In the controller, i am creating a new object, called $Object.
  Object class has a private property $id, and a getter getId();</p>
  
  <p>In the controller, i am creating a new View(), what is loading a template file.
  So my controllers seems like this:</p>
  
  <pre><code>$View = new View('templateFile.php');
  $View-&gt;Object = new Object();
  $View-&gt;show();
  </code></pre>
  
  <p>If i am editing this in the controller, when typing $View->Object->ge... netbeans automatically try to autocomplete it to getId or offers all methods what starts with "ge".
  Cool.</p>
  
  <p>I am editing the template file, where the $this is the View object.
  When i type, $this-> and CTLR+Space, there are no suggession. </p>
  
  <p>Is it possible to earn this somehow?</p>
  
  <p>That could be a dream, if i could do this with $this->Object-> and CTRL+Space.</p>
  
  <p>Here are my important pieces of my View class:</p>
  
  <pre><code>public function show() {
          echo $this-&gt;getViewContent();
  }
  
  public function getViewContent() {
      $container = null;
      $defaultViewHeader = '';
      if ($this-&gt;showDefaultViewHeader) {
          if (file_exists($this-&gt;viewsDir . $this-&gt;defaultViewHeaderFile)) {
              $defaultViewHeader = $this-&gt;getContent($this-&gt;viewsDir . $this-&gt;defaultViewHeaderFile);
          } else {
              $defaultViewHeader = $this-&gt;getContent($this-&gt;commonDir . $this-&gt;defaultViewHeaderFile);
          }
      }
      $pageContent = $this-&gt;getContent($this-&gt;file);
      if ($this-&gt;showDefaultViewHeader) {
          $pageContent = $defaultViewHeader . $pageContent;
      }
      if ($this-&gt;showContainer) {
          $container = $this-&gt;getContent($this-&gt;viewsDir . $this-&gt;containerFile);
          $pageContent = str_replace('[' . HTD_PAGECONTENT . ']', $pageContent, $container);
      }
      return $pageContent;
  }
  
  public function getContent($file) {
      ob_start();
      include ($file);
      $content = ob_get_contents();
      ob_end_clean();
      return $content;
  }
  </code></pre>