Welcome Guest, Not a member yet? Register   Sign In
HELP: Ion Auth Hooks and Structure
#1

[eluser]Unknown[/eluser]
I'm a PHP dev, but fairly new to CI and brand new to Ion Auth. I have a project that I am working on with an immediate deadline.

I have the basic Ion Auth DB structure, but I've modified the user_meta fields and added a new subscriptions table into mix.

Basically, all users will belong to a subscription. The user_meta table contains a sub_id field to relate to the subscriptions table.

When a new subscription is created, an admin user for that subscription is also created. That user has the ability to add new general users to the subscription.

That's how I need it to work, but being new to Ion Auth, I have no idea how to get started.

I see the Ion Auth model contains something called "trigger_events", which I'm guessing relates to hooks. I also see that there is one for "pre_register". It looks like that would be ideal, but I haven't the slightest idea of how to begin to use that functionality. There doesn't seem to be any examples online either.

Any help would be great!




Theme © iAndrew 2016 - Forum software by © MyBB