silverstripe-frameworktest/code/multiform/TestMultiFormPage.php
2017-01-15 21:19:56 +13:00

28 lines
520 B
PHP

<?php
class TestMultiFormPage extends Page
{
}
class TestMultiFormPage_Controller extends PageController
{
public function Form()
{
$form = new TestMultiForm($this, 'Form', new FieldList(), new FieldList());
return $form;
}
public function FormMessage()
{
if (Session::get('MultiFormMessage')) {
$message = Session::get('MultiFormMessage');
Session::clear('MultiFormMessage');
return $message;
}
return false;
}
}