• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making CodeIgniter and SugarCRM play well together

I am working on a SugarCRM integration in which I would like to use the SugarCRM model in CodeIgniter. This way I don't have to rebuild all of the database interactions. From within the Sugar directory this is no problem. You can include the following lines in a script and everything works.

SugarCRM Entry point code:
if(!defined('sugarEntry'))define('sugarEntry', true);

As I said, this will only work from within the SugarCRM directory. If you try to use these lines in a CI model in an outside dir then call the Sugar methods directly you get redirected to install.php in Sugar. This is because entryPoint.php cannot find the Sugar config.php file.

Here is the folder structure


One thing that I have tried was putting these lines of code in a file under the SugarCRM directory and then including it in my CI model but it still executes as if i were outside of the SugarCRM directory which causes a redirect.

Does anyone have any suggestions on a work around?

Can anyone suggestion a way to organize CI to where it is in the SugarCRM directory but the URLs still work as if it is in root.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.