Welcome Guest, Not a member yet? Register   Sign In
Loading helper before controller
#4

Don't know exactly why this is (haven't looked in the code itself), but you can use an initController method instead of __construct to do what you want.

PHP Code:
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
{
    
// Do Not Edit This Line
    
parent::initController($request$response$logger);

    
$this->_defaultAdminPerms();

Reply


Messages In This Thread
Loading helper before controller - by Cyto5 - 08-27-2020, 11:03 AM
RE: Loading helper before controller - by Cyto5 - 08-27-2020, 01:18 PM
RE: Loading helper before controller - by jreklund - 08-27-2020, 01:27 PM
RE: Loading helper before controller - by Cyto5 - 08-27-2020, 01:35 PM
RE: Loading helper before controller - by Cyto5 - 08-27-2020, 02:59 PM
RE: Loading helper before controller - by someone - 10-01-2020, 04:31 AM
RE: Loading helper before controller - by someone - 10-01-2020, 11:39 PM
RE: Loading helper before controller - by MGatner - 10-03-2020, 08:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB