[TYPO3-team-core-v5] Component Cache?

Ricardo Mieres ricardo.mieres at 502.cl
Thu Sep 25 22:26:27 CEST 2008


Ricardo Mieres escribió:
> Hi!,
> 
> I am having a litle problem with $this->componentFactory->getComponent 
> it returns every time  the same reference to an object..
> 
> example:
> $nodeView = $this->componentFactory->getComponent('F3_CPanel_View_Node');
> $nodeViewLeft = 
> $this->componentFactory->getComponent('F3_CPanel_View_Node');
> 
> 
> now I add some data to the indernal data array in $nodeView  and this 
> data appear in $nodeViewLeft too.
> 
> 
> it is needed a cache system by instancing of objects?
> 
> Saludos.
> Ricardo
> 
> 
> 
> 
I am solve this problem using "clone".


More information about the TYPO3-team-core-v5 mailing list