Hi, I'm starting out on Silverstripe and for starters I want to do something simple: construct a form on one template (call it menu.ss) then display the results you choose on another template (call it order.ss) but I'm having trouble figuring this out
My form is standard fare:
$fields = [array of fields]
$actions = new FieldSet(
new FormAction('order', 'Place Order')
);
return new Form($this, 'order', $fields, $actions);
I thought I could use this to load a separate template for the forms post data but this just gives me a blank screen
function order($data, $form) {
return $this->customise(array('data' => $data))->renderWith('order');
}
I'm sure there is a simple way to get Silvertripe to display post data to a seperate template. What have I overlooked?
I searched beforehand but I couldn't find a viable answer