Welcome Guest, Not a member yet? Register   Sign In
[split] appstarter doesn't work (CodeIgniter 4.0.0-beta.3 released)
#1

I just tried out the codeigniter4/appstarter and it doesn't work "out of the box". I'd report it on GitHub but the project repo doesn't have an issue tracker.

The problem is simple to fix - it ships with the DebugToolbar enabled in app/Config/Filters.php.

PHP Code:
    // 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'
        
],
    ]; 

The toolbar needs to be commented out in $globals['after'] like so:


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

Just thought I'd post this for anyone wondering why the appstarter doesn't work out-of-the-box.
Reply


Messages In This Thread
[split] appstarter doesn't work (CodeIgniter 4.0.0-beta.3 released) - by Alex2005 - 05-17-2019, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB