A few months ago I tried to figure out how to delete a member from my site. I am using the member profile module. There was someone whom gave me specific instructions on how to do this. I did manage to create the link to the page, but I don't know where to place this code. I was told to place it in my page controller, but how? Anyway, it's real simple, and I have posted the code given to me a few months ago on how to do this. I been busy constructing other visuals for my site, and I apologize for the delay of this problem.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
but I don't know where to place this code. I was told to place it in my page controller, but how?
* Open mysite/code/Page.php.
* Go down to the Page_Controller section and paste that code within the { } surrounding the Controller.
* Additionally you may need to tell SS that function is allowed to be called. Again in the Page_Controller class (normally at the top of the class)
static $allowed_actions = array('deleteself')
I tried to figure out where to place this code, but I'm not sure? Anyway, I will send you a copy of this file, and maybe you can spot where to put this code. I am afraid of ruining my site.
I did try the pastie.org, and I figured it out. Thank you for your help.