[TYPO3-dev] API MAC MADE

Sebastiaan van Parijs sebastiaan at framed.nl
Fri Dec 14 11:45:49 CET 2007


Malte Jansen wrote:
>> 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
The function is working, so all the right params and values and crap are 
set.
And yes the function is and was working, but there are some properties 
of the function that arent set right i think so i need an example or 
something to make it work 100% could you maybe give it a try??

THnx, Cheers to you to!
Sebastiaan




More information about the TYPO3-dev mailing list