For security purposes, Joomla! has been designed with only two entry points. Frontend and backend requests are always initiated through the root
administrator/index.php entry points respectively. When we create extensions for Joomla!, we must be sure to never create any new entry points. To ensure that we do not do so, we should always include the code described in the previous section at the beginning of all our files. By using the normal entry points, we are guaranteeing that we are not circumventing any security or other important procedures.
Generally when we develop PHP scripts, we work extensively with the request hashes:
$_REQUEST. In Joomla!, instead ...