[TYPO3-dev] $this->cObj->data['pi_flexform'] empty?

Henjo Hoeksma hphoeksma at stylence.nl
Mon Dec 1 16:59:36 CET 2008


Hi list,

I am working on a mulit language extension but run into a problem that 
kept me busy the last view hrs.

$this->cObj->data['pi_flexform'] seems to be empty.

I use the way of loading FF values as described in the wiki:

	function init(){
		$this->pi_loadLL();
		$this->pi_initPIflexform();
		$this->lConf = array();
		$piFlexForm = $this->cObj->data['pi_flexform'];
		$index = $GLOBALS['TSFE']->sys_language_uid;
		$sDef = current($piFlexForm['data']);
		$lDef = array_keys($sDef);
		foreach ( $piFlexForm['data'] as $sheet => $data )
			foreach ($data[$lDef[$index]] as $key => $val )
			$this->lConf[$key] = 
$this->pi_getFFvalue($piFlexForm,$key,$sheet,$lDef[$index]);
	}

I also took the steps prescribed in the wiki where it comes to adding 
the references to the FF file.

I have found some threads on people with the same problem, but could 
not trace a solution.

Thank you for your response in advance,

Henjo





More information about the TYPO3-dev mailing list