mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
0a4f22a08f
ENHANCEMENT: use FormActioin constructor to replace ImageFormAction constructor for SilverStripe 3
25 lines
438 B
PHP
25 lines
438 B
PHP
<?php
|
|
class TestMultiFormPage extends Page {
|
|
|
|
}
|
|
|
|
class TestMultiFormPage_Controller extends Page_Controller {
|
|
|
|
function Form() {
|
|
$form = new TestMultiForm($this, 'Form', new FieldList(), new FieldList());
|
|
|
|
return $form;
|
|
}
|
|
|
|
function FormMessage() {
|
|
if(Session::get('MultiFormMessage')) {
|
|
$message = Session::get('MultiFormMessage');
|
|
Session::clear('MultiFormMessage');
|
|
|
|
return $message;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|