[TYPO3] GIFBUILDER: Error at require_once class.tslib_gifbuilder.php from BE
Dmitry Dulepov [typo3]
dmitry at typo3.org
Wed Jul 16 10:05:47 CEST 2008
Hi!
Manuel Rego Casasnovas wrote:
> I'm trying to use GIFBUILDER from a BE module to pre-generate some
> images that are going to be used later on the website.
>
> The problem is that when I try to create an object of "tslib_gifbuilder"
> I need to do a require_once, as usually, but it doesn't work:
> require_once(t3lib_extMgm::extPath('cms').'tslib/class.tslib_gifbuilder.php');
> $gifCreator = t3lib_div::makeInstance('tslib_gifbuilder');
>
> And I get the next error, just at require_once line:
> Fatal error: Class 't3lib_stdGraphic' not found
> in /var/www/mywebsite/typo3_src-4.1/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php on line 102
require_once(PATH_t3lib . 'class.t3lib_stdgraphic.php');
> I don't see anything wrong in my code, but maybe it's not possible to
> create an instance of this class at backend.
GIFBUILDER is a frontend class. I do not think it will be easy to use in BE. Take a look at directly t3lib_stdGraphic instead.
Generally you should avoid use anything from tslib in Backend.
--
Dmitry Dulepov
TYPO3 Core team
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/
More information about the TYPO3-english
mailing list