CI4 - Extending Core System Class - HTTP/URI |
Hello, i upgraded my project from CI3 to CI4. In Upgraded project, i tried to extend the System HTTP\URI class with the reference of CI4 user guide. But extended class not loaded properly.
Code as follows: 1.app/libraries/URI.php Code: <?php namespace App\Libraries; 2.app/config/services.php Code: <?php namespace Config; Note: Extended URI class method($this->setURI) loaded when accessed like Service::uri, else it loads from Codeigniter\HTTP\URI.php if accessed like "new URI()". I want to override the method($this->setURI) completely. |
Messages In This Thread |
CI4 - Extending Core System Class - HTTP/URI - by rgkrishnan - 03-29-2020, 05:40 AM
RE: CI4 - Extending Core System Class - HTTP/URI - by dave friend - 03-29-2020, 12:37 PM
|