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   340 Views

Avatar
cachobong

25 April 2013 at 6:42pm Community Member, 9 Posts

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

3 May 2013 at 9:25pm Forum Moderator, 5511 Posts

Yes. You can even do

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