Welcome Guest, Not a member yet? Register   Sign In
Extending core class IncomingRequest
#4

(This post was last modified: 02-14-2020, 08:06 AM by dave friend.)

I think all you need to do is add the proper "use" clause into /app/Config/Services.php
The top part of the file should look like this
PHP Code:
<?php namespace Config;

use 
CodeIgniter\Config\Services as CoreServices;
use 
CodeIgniter\Config\BaseConfig;

//add the following
use App\Libraries\IncomingRequest;

require_once 
SYSTEMPATH 'Config/Services.php';

class 
Services extends CoreServices 

Everything else in the file remains as you show it above. That all looks good to me.
Reply


Messages In This Thread
Extending core class IncomingRequest - by x1250 - 02-12-2020, 06:44 PM
RE: Extending core class IncomingRequest - by dave friend - 02-14-2020, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB