tattersoftware / codeigniter4-themes

Lightweight theme manager for CodeIgniter 4
MIT License
14 stars 5 forks source link

"themes" filter must have a matching alias defined #26

Open mandahylla opened 11 months ago

mandahylla commented 11 months ago

Hello got this issue when i'm trying to setup and test the module. it comes when i add themes filter in the route : $routes->get('/', 'Login::index', ['filter' => 'themes']); i've respect any step in the readme. Capture tatter themes

MGatner commented 10 months ago

You are totally right: the README is missing the step to add an alias. I will update that, but in the meantime you can get that info from the framework docs: https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#aliases

MGatner commented 10 months ago

Actually this is supposed to be handled by the Filters discovery: https://github.com/tattersoftware/codeigniter4-themes/blob/develop/src/Config/Filters.php#L11

Do you have autoloading of modules on?