• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few routing things..

#1
Hi,

I don't have the time to purpose PR so I am opening a thread here instead. Smile

  1. Auto routing and namespaces
    Auto routing is not working with namespaces. Specially when default namespace is set into the Router configuration (which is by default)
    PHP Code:
    Code:
    $routes->setDefaultNamespace('App\Controllers');

    I understand that AutoRouting with different namespaces is not possible or at least it can generate conflicts and etc.. How ever when there is Default namespace at least its controllers/methods should be proceeded correctly. Currently
    Code:
    App\Controllers\Home
    can't be found on
    Code:
    url //home or //home/index

  2. Current URL is not working as it has to..
    I have basic Ubuntu apache2 server and my CI4 root dir is :
    Code:
    /var/www/html/test/
    with url :
    Code:
    http://localhost/test/public/

    Using current_url() helper methods I have
    Code:
    http://localhost/

    I updated my RewriteBase at the htaccess but there was no difference.. At the same time when I add some query to this page its not visible either..
Best VPS Hosting : Digital Ocean
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.