You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI, I have the debugbar working on my site, but the messages are not working.
The debugbar inizialization is: (new Snowair\Debugbar\ServiceProvider(BASE_PATH . '/config/debugbar.php'))->start();
Then if I try to use it, nothing happens:
<?php$debugbar=$di->get('debugbar');
$debugbar->startMeasure('start-1','how long'); // startMeasure($internal_sign_use_to_stop_measure, $label)$debugbar->addMeasurePoint('start'); // measure the spent time from latest measurepoint to now.$debugbar->addMessage('this is a message', 'label'); // add a message using a custom label.$debugbar->info(ENVIRONMENT,SITENAME); // add many messages once a time. See PSR-3 for other methods name.(debug,notice,warning,error,...)$debugbar->addMessageIfTrue('1 == "1"', 1=='1','custom_label'); // add message only when the second parameter is true$debugbar->addMessageIfTrue('will not show', 1=='0');
$debugbar->addMessageIfFalse('1 != "0" ', 1=='0'); // add message only when the second parameter is false$debugbar->addMessageIfNull('condition is null', Null ); // add message only when the second parameter is NULL$condition='';
$debugbar->addMessageIfEmpty('condition is emtpy', $condition ); // add message only when the second parameter is empty$debugbar->addMessageIfNotEmpty('condition is not emtpy', $condition=[1] ); // add message only when the second parameter is not empty$debugbar->addException(new \Exception('oh , error'));
$debugbar->addMeasurePoint('stop');
$debugbar->stopMeasure('start-1'); // stopMeasure($internal_sign_use_to_stop_measure)
If I try inside volt template I receive an error: {{ addMessage('test message','label') }}
HI, I have the debugbar working on my site, but the messages are not working.
The debugbar inizialization is:
(new Snowair\Debugbar\ServiceProvider(BASE_PATH . '/config/debugbar.php'))->start();
Then if I try to use it, nothing happens:
If I try inside volt template I receive an error:
{{ addMessage('test message','label') }}
The text was updated successfully, but these errors were encountered: