17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 752 Views |
-
new Form $controller isn't working

20 October 2008 at 12:32pm
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?
| 752 Views | ||
|
Page:
1
|
Go to Top |

