Welcome Guest, Not a member yet? Register   Sign In
Executing code before the controller?
#1

[eluser]JasonS[/eluser]
How do I identify the controller/function being executing in a pre-controller hook?
#2

[eluser]wiredesignz[/eluser]
Router $class $method
#3

[eluser]JasonS[/eluser]
Could you elaborate. What I would like to do is have a 'secure' controller/function list.

The plan is to have several arrays of what users can and cannot access based on their access level. Each array will contain a controller:function pairing. I will then redirect users or allow them to proceed based on their access rights.


Could you elaborate on what you have posted to help me determine what the controller/function is that the user requesting.

Also, how would I change the controller function to redirect them? Is there a built in method to do this or should I use the header() function?




Theme © iAndrew 2016 - Forum software by © MyBB