Ran into structure. The entry point is the index.php file, where the
index.php
define('SYSPATH', realpath($system).DIRECTORY_SEPARATOR); require APPPATH.'bootstrap'.EXT;
Then, each time the files are connected: bootstrap.php
<?php defined('SYSPATH') or die('No direct script access.');
Is this a kind of protection against the fact that we could not connect the bootstrap.php file directly?
-If we connect the file other.php in the bootstrap.php file so we have to declare the variable in the bootstrap.php file in the same way and check the presence in other.php ?
-How are there other ways of similar protection (I heard that you can not access files in a specific location, tell me)?
thank