Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: How to Integrate Other Code using Autoload Classes?

How to Integrate Other Code using Autoload Classes? 1 month 4 days ago #75500

  • jcrist
  • jcrist's Avatar
  • Offline
  • Elite Member
  • Posts: 212
  • Thank you received: 11
  • Karma: 1
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?
The administrator has disabled public write access.

How to Integrate Other Code using Autoload Classes? 1 month 3 days ago #75518

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 8789
  • Thank you received: 1337
  • Karma: 323
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".

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.118 seconds
Powered by Kunena Forum