FAQ - Hook: php_index_top

Hook: php_index_top

4191


Use this hook to execute PHP code in the index.php file before anything else.

For example:

define('MY_VAR', "cool");

if you like to include a file:

APP_PATH.'plugins/yourplugin/file_to_include.php';