[TYPO3-dev] API MAC MADE
Malte Jansen
mail at maltejansen.de
Fri Dec 14 11:35:01 CET 2007
> Im using the function but ill show you what the problem is:
>
> require_once(t3lib_extMgm::extPath('api_macmade').'class.tx_apimacmade.php');
>
>
> $feAdminConf = array();
> //THESE NEED TO BE FILLED IN TO DO SOME STUFF IN THE API
> $feAdminConf['table'] = $table_row;
> $feAdminConf[ $eval . '.' ][ 'required' ];
> $feAdminConf[ $eval . '.' ][ 'evalValues.' ];
>
> switch(strtoupper($type)){
>
> //INPUT
> case 'INPUT':
> return $this->api->fe_createInput($type,$label,$feAdminConf,$eval);
> break;
>
> So how do i address the function properly with the right array?
> You got a clue?
Hi,
you can not call a function not initializied like:
$this->api->fe_createInput($type,$label,$feAdminConf,$eval);
You have to call it in static way (class::function) or you have tocreate
the api before ($my_var = new class() )..
By the way you cannot put a table-row to var, which wants a tablename:
$feAdminConf['table'] = $table_row;
(I suppose that the labeling corresponds with the content.)
Check wheather the function is running...
Cheers,
Malte
More information about the TYPO3-dev
mailing list