Welcome Guest, Not a member yet? Register   Sign In
How to change the Controller+Action if certain criteria met
#1

I have a base controller, and in it I am loading the user model. If the model has some certain flags active, I want to change the action.
e.g. User is visiting forum/thread means forum controller and thread action. But in the user model, the "is_locked" flag has value "1", so I want the CI to use the "account" controller and "locked" action, but I don't want the page to redirect to account/locked.
Reply


Messages In This Thread
How to change the Controller+Action if certain criteria met - by tom365 - 02-20-2015, 04:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB