<?php
require_once('/Users/Francesco/pharen2/pharen/lang.php');
Lexical::$scopes['oop'] = array();
class Controller_Hello extends Controller{
public $template = "site";
protected $template2 = "site";
public function action_index(){
$this->template->message = $ciao;
return FALSE;
}
;
}
the error is Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /Users/Francesco/pharen2/pharen/examples/test/tests/oop.php on line 11
when the macro create the function it add a ; to the end of function that can't be put inside the body of class after the function, but in a normal function can be used
i have try to create a macro that returning a method with public access.
This is the example code in phn
and how result i get this php
the error is Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /Users/Francesco/pharen2/pharen/examples/test/tests/oop.php on line 11
when the macro create the function it add a ; to the end of function that can't be put inside the body of class after the function, but in a normal function can be used