Hello,
I am to stupid to use renderWith...
I have the following class:
class builderField extends Form
{
protected $controller;
function __construct($controller)
{
$this->controller = $controller;
$fields = new FieldSet(
new TextField("builder", "", '')
);
$actions = new FieldSet(
new FormAction('results','Do it'));
return parent::__construct($controller,"Form",$fields,$actions);
}
function results ($data='',$form='')
{
// Some Actions
$da = array ('Test' => 'World');
return $this->controller->customise($da)->renderWith('builder');
}
}
I start the class in my page_controller which works. I get the form returned. But when I send the form up, I get only a empty side with the content of the builder.ss. But the "round-about" of the page.ss is missing.
What is wrong?
I start the class like this:
class Page_Controller extends ContentController
{
function builderForm () {
new builderField($this);
}
}
Please help me....
Bez