Override Router |
Hi folks!
I'm trying to override the router. From what I can make out, the best way to do this is to edit the service first. So, in my app/Services.php, I have the following:- PHP Code: <?php The function is copied directly from the system services file. So, in theory, as it's unchanged, it should work as usual? However, I now get the following error:- Argument 1 passed to Config\Services::router() must be an instance of Config\RouteCollectionInterface or null, instance of CodeIgniter\Router\RouteCollection given, called in /var/www/vhosts/creative-spectrum.co.uk/public_html/micronet/system/CodeIgniter.php on line 807 |
Welcome Guest, Not a member yet? Register Sign In |