I made a contest where members could register to win prizes.
Now, it’s time to display results and winners of the contest. I want to allow only one controller and one method, to disable the possibility to still register to the contest.
I think redirections may be a great solution but how to do this on the whole application without copy and paste the code in every methods of each controller?
Any ideas/advices welcomed!
The easiest way would be to catch any url in your routes file (
config/routes.php) and assign it to the controller action you want to show:This is also faster than using redirects.