I am doing an e-learning application using CakePHP.
The problem is that I need to use the word “class” in the Controller so I can get a class link http://www.site.com/class/
Is there a way to use the word “class” or not?
I am currently using classroom (http://www.site.com/classroom) but the word itself is long.
Thanks.
I wouldn’t recommend it. Check out http://www.php.net/manual/en/reserved.keywords.php
Pick a different name, like ‘rooms’, or leave it as classrooms. Or use Cake’s routing.