Maybe it's just me, because I've been coding all night until the wee hours. =) But I'm confused as to why, when I create a form of my own, it uses the form name as the action url?
function SignupForm() {
$fields = new FieldSet(
new EmailField('Email', 'E-mail Address')
);
$action = new FieldSet(new FormAction('signup', 'Sign Up'));
return new Form($this, 'SignupForm', $fields, $action);
}
will output this in the page:
<form id="Form_SignupForm" action="/project/home/SignupForm" method="post" enctype="application/x-www-form-urlencoded">
Shouldn't it be this?:
<form id="Form_SignupForm" action="/project/home/signup" method="post" enctype="application/x-www-form-urlencoded">
I tried doing this instead:
$form = new Form($this, 'SignupForm', $fields, $action);
$form->setFormAction($this->link('signup'));
return $form;
but that returns a server error. The former problem just returns you a "page not found" error.