Welcome Guest, Not a member yet? Register   Sign In
Fatal Error When Set CI_DEBUG to False On Production Mode Codeigniter 4
#2

I found the problem in the restful api.

The problem is in the config/filter.php


Code:
$routes->resource('ApiManageTips', ['controller' =>'App\Controllers\ApiData\ApiManageTips']); // get, put, create, delete



Code:
public $filters = [                           
        'basicauth'    => ['before' =>
                                [                              
                                    'ApiManageTips/*',
                                    'ApiManageTips',                                 
                                ]
                            ]
        ];



The Above example is working in the version 4.1.2  but is not working in version 4.2.6

Instead change to :

Code:
public $filters = [                           
        'basicauth'    => ['before' =>
                                [                              
                                    'ApiManageTips/*',                                   
                                ]
        ];



I don't why it is not working in the CI Version 4.2.6.
Reply


Messages In This Thread
RE: Fatal Error When Set CI_DEBUG to False On Production Mode Codeigniter 4 - by dennz.liu - 10-01-2022, 11:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB