$thedate= new \DateTime(); ohne den slash bist du im lokalen namespace deiner extension
cheers alex Christian Platt schrieb:
Hallo, ich versuche in einem Controller ein dateTime Objekt zu erzeugen $thedate= new DateTime(); Ich erhalte einen Fatal Error, der Controller interprtiert das wohl als einen eigenen Methodenaufruf. Was mache ich falsch? Typo3 6.2.4 php 5.4.2 Fatal error: Class 'Pharmaline\Phlsso\Controller\DateTime' not found in /Library/WebServer/Documents/typo62/typo3conf/ext/phlsso/Classes/Controller/SsologController.php on line 103 Call Stack # Time Memory Function Location 1 0.0002 255640 {main}( ) ../index.php:0 2 0.0121 2489280 require( '/Library/WebServer/Documents/typo62/typo3_src-6.2.4/typo3/sysext/cms/tslib/index_ts.php' ) ../index.php:28 3 0.2947 29659248 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript( ) ../index_ts.php:231 4 0.2948 29796256 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent( ) ../TypoScriptFrontendController.php:3557 5 0.2965 30149480 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process( ) ../TypoScriptFrontendController.php:3589 6 0.3166 30502088 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->USER( ) ../TypoScriptFrontendController.php:3641 7 0.3166 30502312 TYPO3\CMS\Frontend\ContentObject\UserContentObject->render( ) ../ContentObjectRenderer.php:863 8 0.3166 30502408 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction( ) ../UserContentObject.php:41 9 0.3167 30503984 call_user_func_array ( ) ../ContentObjectRenderer.php:6579 10 0.3167 30504016 TYPO3\CMS\Extbase\Core\Bootstrap->run( ) ../ContentObjectRenderer.php:6579 11 0.3190 30501120 TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest( ) ../Bootstrap.php:184 12 0.3197 30501496 TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest( ) ../Bootstrap.php:195 13 0.3212 30572224 TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch( ) ../FrontendRequestHandler.php:56 14 0.3274 31029408 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest( ) ../Dispatcher.php:69 15 0.3299 31192416 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod( ) ../ActionController.php:157 16 0.3303 31274480 call_user_func_array ( ) ../ActionController.php:286 17 0.3303 31274648 Pharmaline\Phlsso\Controller\SsologController->ssoAction( ) ../ActionController.php:286 Danke für Eure Unterstützung Christian _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
-- Mit freundlichen Grüßen Alex Bigott pixelink_200_ohne_claim Pixel Ink Adi-Maislinger-Str. 7 81373 München Fest: +49 89 4520689-12 Fax: +49 89 4520689-10 web: www.pixel-ink.de <http://www.pixel-ink.de/> E-Mail:a.big...@pixel-ink.de <mailto:a.big...@pixel-ink.de> <https://www.facebook.com/pixelink.muc> _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german