Jump to:

3429 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Object::add_extension for Member class kicks me out of the CMS!

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

Page: 1
Go to End
Author Topic: 718 Views
  • novaweb
    Avatar
    Community Member
    111 Posts

    Object::add_extension for Member class kicks me out of the CMS! Link to this post

    Hey Team,

    I've got a couple of sites which require an extended Member class to allow for phone details etc.

    In mysite/_config.php I have Object::add_extension("Member", "MyMember");

    This is the code for MyMember.php: http://pastie.org/2306228

    For some reason when I put this code in to the site, it kicks me from the CMS and won't let me log in again.

    I'm hoping someone has run in to this previously, If someone could paste a link to the answer on the forum if there is one

    Cheers!

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Object::add_extension for Member class kicks me out of the CMS! Link to this post

    Hi there

    Just to confirm that your code works fine in my testinstall 2.4.5 (quick copy/paste), so it must be something else... You did a /dev/build/?flush=1 I presume?

    718 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.