Silverstripe Version: 4.1
Question:
Working through silverstripe 3 to 4.1 upgrade process. Can someone give me example for “SilverStripe\Forms\Form->Link(): Moved to FormRequestHandler”
This is my current line of code that needs updated:
return $this->Link()."confirm/";
Thanks
A Form not having a Link anymore makes sense. A link is tied to a controller exclusively now. (or a Page, buth that’s, in the end, still a controller).
What you’re probably looking for is something like $this->controller->Link('confirm');
, which calls upon the controller of the form to do what it needs to do.
Exactly what I was after, thanks for that ![:grin: :grin:](https://forum.silverstripe.org/images/emoji/twitter/grin.png?v=10)