function runMe{
return "YOU DID IT!";
}
class Some extends \Prefab {
function runMe{
return "YOU DID IT!";
}
}
{{ Some::instance()->runMe() }}
if I do SET in fatfree all my need variables then there will be a mess
function Some extends Controller {
function get($f3) {
$f3->set('runMe',function(){
return $this->runMe();
});
echo Template::instance()->render('app/theme/main.html');
}
protected function runMe() {
return 'You can access anything: '.print_r(get_object_vars($this),true);
}
}
{{ @runMe() }}