- Create an entrypoint fine anywhere in custom folder(file can be located anywhere you choose).
Let say the file is: ./custom/customEntryPoint.php
PHP123<?phpif(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');echo "Hello World!";
- Next, we will need to create our extension in the application extensions.
This will be located at:
PHP12345<?php$entry_point_registry['customEntryPoint'] = array('file' => 'custom/customEntryPoint.php','auth' => true);
- Finally, navigate to Admin > Repair > Quick Repair and Rebuild. The system will then generate the file ./custom/application/Ext/EntryPointRegistry/entry_point_registry.ext.php containing your registry entry. We are now able to access our entry point by navigating to: