[TYPO3] dynaflex produces wrong flexform-format

Ismael BIDAU bidau at ensci.com
Thu Jun 1 15:51:09 CEST 2006


I would like to do the same things but I have warnings

Warning: array_keys(): The first argument should be an array in …  
typo3conf/ext/dynaflex/class.dynaflex.php on line 706

Warning: Variable passed to each() is not an array or object in …  
typo3conf/ext/dynaflex/class.dynaflex.php on line 717

Any idea ?

In tca.php

$dynaFlexConf = array (
	array (
		'modifications' => array (
		 	array (
				'method' => 'add',
				'path' =>  
'tx_events_list_etudiant_mm/columns/commentaire/config/ds/default/ROOT/el',
				'type' => 'fields',
				'field_config' => array (
    					0 => array (
						'name' => 'semestre',
						'label' =>  
'LLL:EXT:events/locallang_tca.php:tx_events_list_etudiant_mm.semestre',
						'config' => array (
							'type' => 'radio',
							'items' => array (
								array('LLL:EXT:events/locallang_tca.php:tx_events_list_etudiant_mm.semestre0',  
1),
								array('LLL:EXT:events/locallang_tca.php:tx_events_list_etudiant_mm.semestre1',  
2),
							),
						),
					),
					1 => array (
						'name' => 'optionnel',
						'label' =>  
'LLL:EXT:events/locallang_tca.php:tx_events_list_etudiant_mm.optionnel',
						'config' => array (
							'type' => 'check',
						),
					),
				),
			),
		),
	),	
);



More information about the TYPO3-english mailing list