Welcome Guest, Not a member yet? Register   Sign In
Controller Subfolder Structure - Prevent Root Access
#3

[eluser]mdcode[/eluser]
I think that the easiest way to do this is to just copy the standard index.html file that is in all of you other standard CI directories to each of your new sub-directories. This would negate the need to create another Controller page, and would deny direct directory access.

In addition, don't forget to add in this line at the very top of all of your created files:
Code:
if ( ! defined('BASEPATH')) exit('No direct script access allowed');


Messages In This Thread
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 01:17 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 02:57 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-13-2009, 08:38 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-14-2009, 02:17 AM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-15-2009, 02:50 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-15-2009, 04:02 PM
Controller Subfolder Structure - Prevent Root Access - by El Forum - 03-16-2009, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB