Skip to content

Commit 22c8342

Browse files
author
Fredrick Peter
committed
Error logger fixed
1 parent f44bc0a commit 22c8342

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,9 +1445,6 @@ class PostClass extends DB{
14451445
| config_pagination() | Same as `$db->configPagination()` or `EnvAutoLoad::configPagination` |
14461446
| autoload_register() | Same as `AutoloadRegister::load()` |
14471447
| app_data() | Get `path\|database\|pagination` info |
1448-
| base_dir() | Get absolute base directory path. It accepts a param as `string` if given, will be appended to the path |
1449-
| directory() | Same as `base_dir()` just naming difference |
1450-
| domain() | Similar to `base_dir()` as it returns domain URI. Also accepts path given and this will append to the endpoint of URL. |
14511448
| env() | Same as `$db->env()` |
14521449
| env_orm() | Return instance of `(new EnvOrm)` class |
14531450
| env_start() | Same as `EnvAutoLoad::start()` |
@@ -1456,8 +1453,9 @@ class PostClass extends DB{
14561453
| schema() | Return instance of `(new Schema)` class |
14571454
| asset() | Return Absolute path of asset. Same as `Asset::asset()` |
14581455
| asset_config() | Same as `Asset::config()`. Configure Asset root directory |
1459-
| base_path() | Return `server` base directory |
1460-
| directory() | Return `server` base directory |
1456+
| base_path() | Get absolute base directory path. It accepts a param as `string` if given, will be appended to the path |
1457+
| directory() | Same as `base_path()` just naming difference |
1458+
| domain() | Similar to `base_path()` as it returns domain URI. Also accepts path given and this will append to the endpoint of URL. |
14611459
| to_array() | `array` Convert items to array |
14621460
| to_object() | `object` Convert items to object |
14631461
| to_json() | `string` Convert items to json |

src/Traits/ReusableTrait.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,17 @@ public function autoStartDebugger()
5959
{
6060
// if DEBUG MODE IS ON
6161
if(Manager::setEnvBool(APP_DEBUG)){
62+
// header not sent
63+
if (!headers_sent()) {
64+
// Debugger::enable(!APP_DEBUG);
65+
}
66+
6267
// register debugger
6368
Debugger::$showBar = false;
6469
Debugger::$strictMode = true; // display all errors
6570
Debugger::$maxDepth = 5; // default: 3
66-
Debugger::$maxLength = 1000; // default: 150
71+
Debugger::$maxLength = 10000; // default: 150
6772
Debugger::$dumpTheme = $this->getBgColor(APP_DEBUG_BG);
68-
// set cookie
69-
if (!headers_sent()) {
70-
Debugger::enable(!APP_DEBUG);
71-
}
7273
}
7374
}
7475

0 commit comments

Comments
 (0)