Code: Select all
<?php
$debug_mode = true;

ALex.
Code: Select all
<?php
$debug_mode = true;
What exactly does not work? Creating the file? Including the file in your PHP Script? Evaluating the value or your variable for your own logging-scripts? Are there any error messages/exceptions?I create a file named settings.php in the application root folder [...] it doesn’t seem to work![]()
include('CORRECT_PATH/settings.php');
?include('...')
or require('...')
that file.hooks/__bootstrap.php
, if not already exists, declare your variable there. That specific file gets loaded automatically by AppGini generated code. Note: at this place you don't have any library functions available, yet, because loading __bootstrap.php takes place just after REQUEST. hooks/header-extras.php
.settings.php
your variable should be available. You can check it with var_dump($debug_mode); exit;
for example. This should print out true
.[code]...[/code]
blocks for better readabilityin[...] activate the Appgini debug mode and I read somewhere [...]
definitions.php
there is a constant named DEBUG_MODE
. Perhaps this is what you have seen?!true
and use built-in breakpoint(...)
-function within your PHP code. This will write a file named breakpoint.csv
in /WEBROOT/YOUR_APP_PATH/admin/
-subdirectory with your specific debug information.[code]...[/code]
blocks for better readabilitydefinitions.php
gets overwritten on next code generation. [code]...[/code]
blocks for better readability