Welcome Guest, Not a member yet? Register   Sign In
Restrict access to MY_Controller functions
#1

[eluser]dynZack[/eluser]
How do you restrict access in certain functions defined within MY_Controller?

For example:

Code:
class  MX_Controller  extends  Controller  
{
    
    function MX_Controller()
    {
        parent::Controller();
    
    }
      
      
    function set_cookies($params = array())
    {
        ...
    }

}

Going to http://www.example.com/set_cookies outputs a blank page and not a 403 error.

How to make sure that access is forbidden, output a message and redirect to home page?


Messages In This Thread
Restrict access to MY_Controller functions - by El Forum - 08-13-2010, 12:37 AM
Restrict access to MY_Controller functions - by El Forum - 08-13-2010, 12:49 AM
Restrict access to MY_Controller functions - by El Forum - 08-13-2010, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB