silverstripe-frameworktest/code/TestMultiFormPage.php
2010-03-04 02:36:29 +00:00

25 lines
436 B
PHP

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