2010-03-03 23:24:02 +01:00
|
|
|
<?php
|
2015-12-17 21:20:49 +01:00
|
|
|
class TestMultiFormPage extends Page
|
|
|
|
{
|
2010-03-03 23:24:02 +01:00
|
|
|
}
|
|
|
|
|
2017-01-15 09:19:56 +01:00
|
|
|
class TestMultiFormPage_Controller extends PageController
|
2015-12-17 21:20:49 +01:00
|
|
|
{
|
2017-01-15 09:19:56 +01:00
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
public function Form()
|
|
|
|
{
|
|
|
|
$form = new TestMultiForm($this, 'Form', new FieldList(), new FieldList());
|
2010-03-03 23:24:02 +01:00
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
return $form;
|
|
|
|
}
|
2017-01-15 09:19:56 +01:00
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
public function FormMessage()
|
|
|
|
{
|
|
|
|
if (Session::get('MultiFormMessage')) {
|
|
|
|
$message = Session::get('MultiFormMessage');
|
|
|
|
Session::clear('MultiFormMessage');
|
2017-01-15 09:19:56 +01:00
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
return $message;
|
|
|
|
}
|
2017-01-15 09:19:56 +01:00
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
return false;
|
|
|
|
}
|
2010-03-03 23:24:02 +01:00
|
|
|
}
|