[TYPO3-english] error:Class 't3lib_div' not found

tom typostudy at gmail.com
Sat Dec 29 02:40:58 CET 2012


Got it. Thanks.

Tom

On Fri, Dec 28, 2012 at 6:45 PM, Philipp Gampe <philipp.gampe at typo3.org>wrote:

> Hi tom,
>
> tom wrote:
>
> > <?php
> > $cacheFile = t3lib_div::getFileAbsFileName('typo3temp');
> > debug($cacheFile);
> > ?>
> > so when I run test.php, it shows:
> > Fatal error: Class 't3lib_div' not found
> >
> > So what is the problem?
>
> You did not define the class t3lib_div. Thus PHP does not know what to do
> here.
>
> This happens because you call your script outside of the TYPO3 scope and
> therefore, no autoloader is registered yet.
>
> Please get a book about programming first, before trying to learn
> everything
> by asking this list. We are a support list, not an e-learning course.
>
> Have a happy new year.
> --
> Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
> Documentation – linkvalidator
> TYPO3 .... inspiring people to share!
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list