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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

email address

Go to End

2 Posts   754 Views


Community Member, 1 Post

13 April 2012 at 12:49am

Edited: 13/04/2012 5:11am


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()



Forum Moderator, 5523 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