silverstripe-frameworktest/code/multiform/TestMultiFormPage.php

25 lines
438 B
PHP
Raw Normal View History

<?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;
}
}