[TYPO3-calendar] Use of a cal service

Mario Matzulla mario at matzullas.de
Sun Oct 21 21:01:14 CEST 2012


Hi Chris,

the easiest way to integrate cal is to use its api:

$tx_cal_api = t3lib_div::makeInstance('tx_cal_api');
$tx_cal_api = &$tx_cal_api->tx_cal_api_without($pageIDForPlugin);

// $pageIDForPlugin is a page containing the TS for cal

The tx_cal_api class is located in the controller folder.

Regards,
Mario

Am 19.10.12 15:51, schrieb Chris Müller:
> Hi,
>
> I want to get all events with a specified category via the cal service
> tx_cal_phpicalendar => cal_event_model in an own extension. I did this via
>
> $service = t3lib_div::makeInstanceService('tx_cal_phpicalendar',
> 'cal_event_model');
>
> but I always get false instead of an service object. Can someone give me
> a hint how to get this working?
>
> I also read the relevant part in the cal and core documentation but had
> no enligtenment.
>
> Regards,
> Chris.



More information about the TYPO3-project-calendar mailing list