Jump to:

1383 Posts in 492 Topics by 521 members

Themes

SilverStripe Forums » Themes » How to read data in the config file

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1429 Views
  • sugith_k
    Avatar
    Community Member
    1 Post

    How to read data in the config file Link to this post

    Hi,
    I created a article comment using the help which was given in ssbits.com. In that article, it was asked to add the admin email as a static value to the code. I would like to know, how to add the admin email to the config file and how to get that admin email and assign it to the admin email parameter which use in the email function in the comment file.

    Can someone help me with this?

    Thank you,
    Sugith Karunaratne
    Web Developer
    IBCS Corp

  • Willr
    Avatar
    Forum Moderator
    5503 Posts

    Re: How to read data in the config file Link to this post

    I would like to know, how to add the admin email to the config file

    You should set the admin email with Email::setAdminEmail('email@email.com'). You can then get the admin email using the corresponding function Email::getAdminEmail();

    1429 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.