Welcome Guest, Not a member yet? Register   Sign In
How do I prevent direct controller function access?
#2

[eluser]Kraig[/eluser]
In case anyone else needs this I decided to use the routes class. For instance, account is a folder inside the controllers and the second segment "account" would be the controller that has all of the functions.

Code:
$route['account/account/(:any)'] = 'error_mess';

Basically if someone tries to enter "www.somesite.com/account/account/add_user", the add_user being the function, they would be redirected to my set error page!


Messages In This Thread
How do I prevent direct controller function access? - by El Forum - 12-20-2012, 10:16 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 04:15 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:18 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:21 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 07:54 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:08 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:59 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:23 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:51 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:57 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 10:02 PM
How do I prevent direct controller function access? - by El Forum - 12-22-2012, 01:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB