Hello
My googling has yielded no results, thus I turn to you.
I've got a Silverstripe setup with an extended Member-class and it's own database table. I now want to create an external interface for accessing data stored in said table. Since this is my first confrontation with Silverstripe I'm rather stumped as to how to achieve this.
What I've tried:
require_once("../sapphire/core/Core.php");
if(Member::currentUserID())
The function exists and can be called, but never returns anything but 0 and does not enter the if (I am logged in however).
Also, I don't want to create a subpage on the site for this. Is there any way to achieve my goal?
Thanks