Hello,
I have problems with Form class I have the following code:
class PortfolioMember extends Page_Controller {
function add(){
$fields = new FieldSet(
new SimpleImageField("project"),
new TextField("titel","titel"),
new TextareaField("omschrijving","omschrijving")
);
$actions = new FieldSet(new FormAction("save", "save"));
$form = new Form($this, "add", $fields, $actions);
return array(
"Form" => $form
);
}
And now the problem: when I view de html it parses this:
<form id="Form_add" action="/?executeForm=add" method="post" enctype="multipart/form-data">
ase you can see the is the action attribute's value "/?executeForm=add". I think it should be
"PortfolioMember/?executeForm=add".
What am I doing Wrong? Or is this a bug?