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
I think that itâs same problem. I made the test from documentation. It work without problems.
I see match in your requests.
- You use system which installed to subdirectory.
Perhaps the parameterfile
of filecustom/modules/Contacts/entry_point_registry.php
should take account of the subdirectory. - You should use documetntation step by step and your file of entry point should be in
custom/Extension/application/Ext/EntryPointRegistry