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
|
|
|
}
|
|
|
|
|
2015-12-17 21:20:49 +01:00
|
|
|
class TestMultiFormPage_Controller extends Page_Controller
|
|
|
|
{
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function FormMessage()
|
|
|
|
{
|
|
|
|
if (Session::get('MultiFormMessage')) {
|
|
|
|
$message = Session::get('MultiFormMessage');
|
|
|
|
Session::clear('MultiFormMessage');
|
|
|
|
|
|
|
|
return $message;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
2010-03-03 23:24:02 +01:00
|
|
|
}
|