Welcome Guest, Not a member yet? Register   Sign In
How can I turn the debug bar on?
#3

(This post was last modified: 04-24-2020, 04:40 PM by YanKleber.)

(04-24-2020, 04:33 PM)Gary Wrote: Go to app\Config\Filters.php and make sure this line is uncommented:

'after'  => [
'toolbar', //  comment this out to disable the debug toolbar

It is... either in $aliases as well in $globals...

Here it is my Filters.php file:

PHP Code:
class Filters extends BaseConfig
{
    
// Makes reading things below nicer,
    // and simpler to change out script that's used.
    
public $aliases = [
        
'csrf'     => \CodeIgniter\Filters\CSRF::class,
        
'toolbar'  => \CodeIgniter\Filters\DebugToolbar::class,
        
'honeypot' => \CodeIgniter\Filters\Honeypot::class,
    ];

    
// Always applied before every request
    
public $globals = [
        
'before' => [
            
//'honeypot'
            // 'csrf',
        
],
        
'after'  => [
            
'toolbar',
            
//'honeypot'
        
],
    ];

    
// Works on all of a particular HTTP method
    // (GET, POST, etc) as BEFORE filters only
    //     like: 'post' => ['CSRF', 'throttle'],
    
public $methods = [];

    
// List filter aliases and any before/after uri patterns
    // that they should run on, like:
    //    'isLoggedIn' => ['before' => ['account/*', 'profiles/*']],
    
public $filters = [];


Any other idea?
Recovering the wasted time...
Reply


Messages In This Thread
How can I turn the debug bar on? - by YanKleber - 04-24-2020, 03:06 PM
RE: How can I turn the debug bar on? - by Gary - 04-24-2020, 04:33 PM
RE: How can I turn the debug bar on? - by YanKleber - 04-24-2020, 04:39 PM
RE: How can I turn the debug bar on? - by Gary - 04-24-2020, 04:47 PM
RE: How can I turn the debug bar on? - by Gary - 04-24-2020, 05:02 PM
RE: How can I turn the debug bar on? - by Gary - 04-24-2020, 05:13 PM
RE: How can I turn the debug bar on? - by Gary - 04-29-2020, 05:36 PM
RE: How can I turn the debug bar on? - by easyD - 04-30-2020, 01:59 AM
RE: How can I turn the debug bar on? - by ben_ci - 03-09-2024, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB