Hey Max, i know, but the file is empty. Sorry, i don't say it directly.
cheers ralf 2014-05-08 20:30 GMT+02:00 Maximilian Walter <[email protected]>: > Hello Ralf, > > oxUtils::writeToLog() can only write inside the directory "log" below > the shop-root. You can't use an absolute path: > > > http://docu.oxid-esales.com/CE/sourcecodedocumentation/4.8.5.6fd00216aba774e84700d892fe7c037753ecb0e3/oxutils_8php_source.html#l01422 > > You can use "file_put_contents()" with the FILE_APPEND-flag instead. > > Or you create a new logfile for your module inside the log-directory of > OXID. I would prefer this solution, because all log-files should be in > the same place. It's also not safe to assume that PHP has write-access > inside the modules-directory. > > Greetings, > Max > > Am 08.05.2014 17:11, schrieb Ralf Kronen: > > Hey there, > > > > i wan't to write a file, when a customer has finished his order. > > > > my modul overrides the finalizeOrder: > > > > public function finalizeOrder( oxBasket $oBasket, $oUser, > > $blRecalculatingOrder = false ) > > { > > $myConfig = oxRegistry::getConfig(); > > $path = > > $myConfig->getConfigParam('sShopDir').'/module/arvato/as_c4s/file/'; > > $file = $path.'c4s.txt'; > > oxUtils::getInstance()->writeToLog('1: '.$file, 'c4s.txt'); > > //oxRegistry::getUtils()->writeToLog('2: '.$file, 'c4s.txt'); > > > > return parent::finalizeOrder($oBasket, $oUser, > > $blRecalculatingOrder); > > } //function > > > > For Tests i write the Filename in a File. But no way runs. What's wrong. > > Oh it's a EE 5.1.5 > > > > Thx and Cheers > > Ralf > > > > > > > > _______________________________________________ > > dev-general mailing list > > [email protected] > > http://dir.gmane.org/gmane.comp.php.oxid.general > > > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general >
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
