CodeIgniter Forums
Setting up Infusionsoft as a library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Setting up Infusionsoft as a library (/thread-47599.html)



Setting up Infusionsoft as a library - El Forum - 12-14-2011

[eluser]Unknown[/eluser]
Hello everyone,

I am having some trouble implementing the infusionsoft SDK. I noticed the posting at: http://ellislab.com/forums/viewthread/163703/ however, updating the XML_RPC did not help.

outside of CI, the following code works as expected:

Code:
require("isdk.php");  

$app = new iSDK;
if($app->cfgCon("gkcc")){

echo "app connected!<br/>";
}
else {
echo "connection failed!<br/>";

}


However in my codeigniter controller, I have it setup like so:


Code:
public function index()
{
  $this->load->library('isdk');
  if($this->isdk->cfgCon("gkcc"))
  {
   echo "app connected!<br/>";
  }
  else {
   echo "connection failed!<br/>";
  }
}

the Isdk.php library has: include("xmlrpc-3.0/lib/xmlrpc.inc"); which is also in the libraries folder.


The error generated in CodeIgniter is a 500 Internal Server Error.

Any questions/comments/suggestions are greatly appreciated. Thanks!