Defining an entry point for custom pages

Hi, I was working on a resource page inside of the CRM for admin-tools such as apache + crm logs, QR&R, etc. all in one place (standalone page, but same directory ‘SuiteCRM/resources.php’ ) but am unable to access some of the data I would want to use without having an entry point. Such as when I call the quick repair and rebuild from code it will perform but then later echo out a ‘not a valid entry point’ which breaks the page. How can I define an entry point for my page so I can use access data that requires auth? Thanks

@lucid
Look at the documentation: https://docs.suitecrm.com/developer/entry-points/
Is there answer for you?

yes, I’ve been following this along with a few other resources and have been able to get the auto-generated file to show up for the entry point. the issue I’m dealing with right now is just that it doesn’t seem to direct to the right path for the page.

So right now I have an entry point registered as ‘sendmail’ which i pointed to ‘file’ = ‘sendmail.php’.

sendmail.php is in my root directory of the project (var/www/html/suitecrm/sendmail.php) which I may be incorrect in assuming that path begins at the root of this directory. When I try to go to x.x.x.x/suitecrm/index.php?entryPoint=sendmail I’m not being brought to php file just a blank screen.

I’ve cleared out the code inside of sendmail.php and it’s just echo ‘hello’; to simplify the problem some more and have been playing around with different syntax for the path but maybe I’m just overlooking something

suitecrm/custom/Extension/application/Ext/EntryPointRegistry/sendmail.php:

$entry_point_registry[‘sendmail’] = array(
‘file’ = ‘sendmail.php’,
‘auth’ = ‘true’
);

suitecrm/sendmail.php:

echo ‘hello’;

Neither suitecrm.log nor apache’s error.log have thrown any errors

@lucid and @fab

I think that it’s same problem. I made the test from documentation. It work without problems.
I see match in your requests.

  1. You use system which installed to subdirectory.
    Perhaps the parameter file of file custom/modules/Contacts/entry_point_registry.php should take account of the subdirectory.
  2. You should use documetntation step by step and your file of entry point should be in custom/Extension/application/Ext/EntryPointRegistry