0
Je rencontre un problème lors de la modification d'une variable smarty par référence. Voici ce que j'essaie de faire:Modifier un objet smarty par référence
class foo {
$property;
public function getProperty(){
return $this->$property;
}
public function index(&$smarty){
$smarty->assign('test',$this->getProperty());
}
}
$smarty = new Smarty();
$foo = new foo();
$foo->index($smarty);
$smarty->display("test.tpl");