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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

email address


Reply


2 Posts   506 Views

Avatar
Nick132

Community Member, 1 Post

13 April 2012 at 12:49am

Edited: 13/04/2012 5:11am

Hi,

I am completely new to silver stripe i just want to knw how can i query and get the email address from member table using DataObject::get()

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

13 April 2012 at 6:56pm

Which member are you trying to get? If you want to get the email address of the currently logged in member then you can do

$member = Member::currentUser();
// $member->Email;

or in the template

$CurrentMember.Email