CodeIgniter Forums
Controller named Icons not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Controller named Icons not working (/showthread.php?tid=73083)



Controller named Icons not working - imabot - 03-17-2019

When I create a controller named Icons, it is not working. When I renamed the controller Icon, it works properly. Is Icons a reserved keyword ?


RE: Controller named Icons not working - dave friend - 03-17-2019

I think maybe your missing something. I did a test and controllers for Icon (in Icon.php) and Icons (in Icons.php) both work perfectly.


RE: Controller named Icons not working - imabot - 03-17-2019

Thank you for your time. I also made a new trial yesterday, and it's still not working. I really don't understand where the problem comes from. 
I already developed several website with CodeIgniter, so I'm now familiar with controllers and routes.

I really dont understand what I'm missing.


RE: Controller named Icons not working - pinebranch - 03-18-2019

Maybe you have a folder name "Icons" in your project folder.


RE: Controller named Icons not working - dave friend - 03-18-2019

(03-17-2019, 08:43 PM)imabot Wrote: Thank you for your time. I also made a new trial yesterday, and it's still not working. I really don't understand where the problem comes from. 
I already developed several website with CodeIgniter, so I'm now familiar with controllers and routes.

I really dont understand what I'm missing.

Routes...
What routes, if any, are you using that involve "icon" or "icons"?

What does "not working" mean? What is or is not happening?