08-13-2010, 12:37 AM
[eluser]dynZack[/eluser]
How do you restrict access in certain functions defined within MY_Controller?
For example:
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?
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?