[TYPO3-mvc] image processing inside controller for json output?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sat Apr 3 10:26:43 CEST 2010
Hi,
>> 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');
although this might be the cleanest solution, he doesn't necessarily
need to do that. For simple image processing stuff he could use already
available instances of cObjects:
- Tx_Extbase_Dispatcher::cObj->IMG_RESOUCRE
- $GLOBALS['TSFE']->cObj->IMG_RESOURCE
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list