This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I use something like this: index.php <?php include 'view.php'; $view=new View; $view->render('index.tpl'); view.php <?php class View{ private function myFunc(){ //doSmth; } public function render($file){ include 'templates'.$file; } } templates/index.tpl <?php /* @var $this Viewer */?> //MakenetBeans known that I use $this as instanse of Viewer class //some html <?php $this->[Code Completion]?> //some other html I want see here private methods because I use $this $this can't be used as usual variable so if I use it, I can use private methods too.