class Controller {
protected $property1;
protected function getUid(){
...
}
public function render($template, array $data){
extract($data);
ob_start();
include $template;
return ob_get_clean();
}
}
Template example.php
to be rendered in Controller::render()
<div><?php echo $this->getUid(); ?></div>
How to get autocomplete suggestions inside example.php
for all methods and properties in Controller class? I'm using NetBeans and PhpStorm. Can I add reference to the class in template's PHPDoc block?