Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions /

Creating a new member


Reply


2 Posts   368 Views

Avatar
cachobong

Community Member, 9 Posts

25 April 2013 at 6:42pm

Is it possible to create/insert a new member in this manner?

$o_member = new Member();
            $a_data['Email'] = 'email@email.com';
            $a_data['Password'] = '123456';
            $a_data['FirstName'] = 'My FirstName';
            $o_member->update($a_data);

Avatar
Willr

Forum Moderator, 5513 Posts

3 May 2013 at 9:25pm

Yes. You can even do

$member = new Member();
$member->Email = "hi@email.com";
..
$member->write(); // saves to database.