Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » renderWith - I have big problems...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 953 Views
  • bezarre
    Community Member
    13 Posts

    renderWith - I have big problems... Link to this post


    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....


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.