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

Customising the CMS /

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

Add Custom Action Response


Go to End


944 Views

Avatar
pelse

Community Member, 14 Posts

16 April 2015 at 9:51pm

Edited: 16/04/2015 9:51pm

I migrate a site using silverstripe 2.4 to 3.1.
I implement an custom action to archiv pages.
Everything is fine but the Classe FormResponse has moved.... to???
I can't find anything.

After do the custom script i have to give a response.
In 2.4 i was done by:

FormResponse::add($response);
FormResponse::status_message(sprintf('Done!.'),'good');
return FormResponse::respond();

How is the ss 3.1 way?