silverstripe-frameworktest/code/multiform/TestMultiFormPage.php

28 lines
549 B
PHP
Raw Normal View History

<?php
2015-12-17 21:20:49 +01:00
class TestMultiFormPage extends Page
{
}
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());
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;
}
}