[TYPO3-mvc] [Extbase] transfer data object between requests

Claus Fassing claus at fassing.eu
Thu May 12 18:43:28 CEST 2011


I have an simple object which hold some data.

class Tx_Ext_Bo_Data implements t3lib_Singleton {
	
	/**
	 * Foo
	 *
	 * @var Tx_Ext_Foo $foo;
	 */
	private $foo;

	/**
	 *
	 * @return Tx_Ext_Foo
	 */
	public function getFoo()
	{
	    return $this->foo;
	}

	/**
	 *
	 * @param Tx_Ext_Foo $foo
	 * @return void
	 */
	public function setFoo($foo)
	{
	    $this->foo = $foo;
	}
}

I set the value in controller A and forward to controller B (new action).
Controller B inject the data object and I can see the value of the data
object in the new action.


More information about the TYPO3-project-typo3v4mvc mailing list