Forum
Calling information from another App
I am creating an orders app and I want to get information from the official Members app. I have tried the following code below but it doesn't work. The code is within the edit.post.php within the modes folder of my app.
$API = new PerchAPI(1.0, 'perch_members');
$Members = new PerchMembers_Members($API);
$Member = $Members->find($account_id);
Thanks
How does it fail?
The script just stops running when it hits that point. Do I need to reference the perch runtime in there?
You'll need to have included the PerchMembers_Members classes.
Also sounds like you need to turn on display of error messages in PHP - that will help a lot when developing.