I use something like this:
index.php(entryPoint)
<?php
include 'view.php';
$view= new View;
$view->a=5;
$view->render('index.tpl');
view.php
<?
clas View{
public function render($file){
include 'templates/'.$file;
}
}
templates/index.tpl
<?php /* @var $this View */?>
//some html
<?php $this->| ?> /*I want to see "a" incode completion here
How it is possible?
I know that something like this are allowed in ZendFramework plugin Maybe I can add it with my framework? some other html */
UPD:
I want to see properties which I used in index.php
in code completion in index.tpl
Properties should not be listed in view php
as properties