[TYPO3-mvc] image processing inside controller for json output?

Andreas Kießling andreas.kiessling at web.de
Fri Apr 2 17:44:00 CEST 2010


Hi Ralph,

Am 02.04.10 17:17, schrieb ralph:
> hi sebastian.
> that's clear. i wonder how i can do the image processing itself inside
> the controller. like $this->cObj->Image()

you're calling a method on a instance of tslib_cObj. Just create an 
instance of that class in your controller and use it instead of $this->cObj:
$local_cObj = t3lib_div::makeInstance('tslib_cObj');

Maybe extbase already has an instance of that class available somewhere, 
but i did not need that so far.

Regards,
Andreas


More information about the TYPO3-project-typo3v4mvc mailing list