I'm currently building my first SS site and have came up against a problem with the forms.
I've created a custom form, and it renders ok.
The controller is RegistrationPage_Controller. I create the form and name it RegForm.
I created a basic class RegistrationForm which extends Form, and is pretty much c&p'd from here: http://doc.silverstripe.com/doku.php?id=form#using_a_custom_template - except the constructor is just:
public function __construct($controller, $name, $fields, $actions)
parent::__construct($controller, $name, $fields, $actions);
All of the field names then have ids RegistrationForm_RegForm_<field_name> which looks as it should, and it submits to RegForm.
So I've created RegistrationPage_Controller::RegForm($data, $form), but it doesn't seem to submit properly.
I put it into dev mode, and it's calling that function without any arguments, and then complaining that no form is returned.
The page then has a fatal error: Call to a member function securityTokenEnabled() on a non-object in /var/www/ss/sapphire/core/control/Controller.php on line 217
Have I missed a step in the form tutorial, or is there a step missing
running version 2.2.2