Re: [symfony-users] Re: question about variables in symfony 1

2010-10-28 Thread Michał Piotrowski
Hi, 2010/10/27 pghoratiu : > Two possible solutions: > > 1. create a class or helper in lib/ that caches the data extraction so > that the second time when you request the data > you have it, something like this: > class myUserProfileCache > { >   static protected $userData = null; > >   public st

[symfony-users] Re: question about variables in symfony 1

2010-10-27 Thread pghoratiu
Two possible solutions: 1. create a class or helper in lib/ that caches the data extraction so that the second time when you request the data you have it, something like this: class myUserProfileCache { static protected $userData = null; public static function getUserData() { if (is