How to Integrate Other Code using Autoload Classes?

I’ve got this CoffeeCup form I want to integrate with Suite so I can get the logged in user info. I’m an old school procedural coder and it appears the classes this form uses are autoloaded, but if I run the code from a Suite entrypoint through index.php the form doesn’t autoload the classes it needs.

In the config.inc.php folder in the fbapp folder there is:

set_include_path( $scriptpath . PATH_SEPARATOR . get_include_path() );

When I output the include path it’s the correct folder. But I think it’s conflicting with Suite’s class autoloading or something.

I put the code under custom/something where under that is the fbapp subfolder

The main php file that calls up the form has to be in the top leve folder (custom in this case)

I’m completely lost. Can anyone throw me a bone on this?

I guess maybe a workaround is how to verify the user is logged in and what their name and id is without using an entrypoint via index.php?

I don’t know the answer but I can try looking for it if you tell me exactly which class you need. Normally this can be achieved with just a “require” or an “include”.