Skip to content

Instantly share code, notes, and snippets.

@Ivanitch
Last active April 28, 2023 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ivanitch/2f9dc13680b41a6704b1630c46f4b99a to your computer and use it in GitHub Desktop.
Save Ivanitch/2f9dc13680b41a6704b1630c46f4b99a to your computer and use it in GitHub Desktop.
Raec debug runtime
$dataArr = [
0 => 'EF001391',
1 => 'EF000228',
2 => 'EF000227',
];
$debug_log = Yii::app()->runtimePath . '/DebugExport.log';
$dataErr = print_r($dataArr, true);
file_put_contents($debug_log, $dataErr . PHP_EOL, FILE_APPEND);
================================
GIT ERROR
================================
From gitlab.3davinci.ru:3davinci/raec/catalog.raec.su
5bc10a6c..0d300cf9 master -> origin/master
Updating 5bc10a6c..0d300cf9
error: Your local changes to the following files would be overwritten by merge:
protected/modules/admin/controllers/ProjectController.php
Please commit your changes or stash them before you merge.
Aborting
git checkout protected/modules/admin/controllers/ProjectController.php
git pull
================================
COMPOSER
================================
rm -rf protected/vendor/symfony/string
composer clearcache
composer install --no-dev --optimize-autoloader --classmap-authoritative
@Ivanitch
Copy link
Author

Для Yii2

$debug_log = Yii::getAlias('@frontend/runtime') . '/GoogleParamsLog.log';
$dataErr = print_r($attributes, true);
file_put_contents($debug_log, $dataErr . PHP_EOL, FILE_APPEND);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment