chez14 / ci4-routing-filter-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI 4 Bug Report #4572

Context: codeigniter4/CodeIgniter4#4572

How to Start this Project:

  • Go to main-app/ and run composer install to install required dependencies
  • Then copy env to .env and fill set them accordingly.
    This project doesnt require a database, you can skip the database part.
  • Start the project by executing php spark serve on main-app/

Project Description:

Routing from extendables have filters pnd_auth where it's registered on Filters.php on extendables, and used on Routes.php on extendables.

The extendables project are accessible on /admin/panel routing group as mentioned on extendables' Routes.php file. So by that we're expecting that routes that have filters will work as expected because we have register them on the Filters.php file on the extendables. That being said, the CI4 returns filter not found exceptions.

By exploration, i figure out that the Filters.php file from extendables didn't get loaded when its needed, while accessing /admin/panel route.

About


Languages

Language:PHP 94.5%Language:JavaScript 2.6%Language:CSS 2.4%Language:HTML 0.5%