21491 Posts in 5783 Topics by 2621 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 799 Views |
-
renderWith - I have big problems...

7 August 2010 at 3:07am
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
| 799 Views | ||
|
Page:
1
|
Go to Top |

