PHP: type hint for '$this' and other variables in phpFramework::view files ? (Netbeans)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1798477/variable-type-hinting-in-netbeans-php">Variable type hinting in Netbeans (PHP)</a>  </p>
</blockquote>



<p><strong>EDIT:</strong>
Oops, I found the answer in one of the "similar" questionsw. Somebody please delete this question.
(http://stackoverflow.com/questions/1798477/variable-type-hinting-in-netbeans-php)</p>

<p><strong>/EDIT</strong></p>

<p>In php frameworks, in the views, <strong>$this</strong> refers to the controller object. But netbeans doesn't know this (I am guessing neither do other IDEs), so when I hit Ctrl + Space, the code completion doesnt work (says No Sugestions).</p>

<p>Is there some trick, or phpdoc directive that can tell the IDE the types of a variable that isn't declared in the current file (and there is no "include" or require_once either, because the php framework takes care of that by convention, so no explicit include is made).</p>

<p>Also in php frameworks there are other variables besides $this in the view.php files, but putting on the top of the file a php doc for them doesn't seem to do anything either.</p>
