On 12-05-2009 at 13:37:17 Szymon Przybył <apocalyp...@gmail.com> wrote:

> $tal->team = $team;
> In templates team/players doesn't works, but php:team.players works.
> When I call players from team object before set it in phptal:
> $team->players;
> $tal->team = $team;
> team/players works in templates... Why it doesn't works without calling  
> previously $team->players?

These properties are probably created on-demand using __get(). 

Does isset($team->players) return true before you use $team->players? If not, 
then perhaps the framework defines __isset() method, but doesn't implement it 

Look into phptal_path() function in Context.php to see how PHPTAL finds 

regards, Kornel

PHPTAL mailing list

Reply via email to