Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » problem in writing function

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 695 Views
  • bebabeba
    Community Member
    192 Posts

    problem in writing function Link to this post

    I create form using guide. I create 3 function caracterized by forms. Now I want a function Take_all that take the value that this function return (the forms) , add button ad show all the form and the buttun.
    What is wrong?This is my code:

    function EventoMeeting()
          $fields1 = new FieldSet( ..... );
    $a = new Form($this, 'EventoMeeting', $fields1);
    return $a;
    function InfoMeeting()
          $fields2 = new FieldSet( ..... );
    $a = new Form($this, 'InfoMeeting', $fields2);
    return $a;

    function Take_all($a, $b)
       {   $actions = new FieldSet(
    new FormAction('doMeeting', 'Send')
    return $action_cattura = new Form($this, 'EventoMeeting', 'InfoMeeting', $fields1, $fields2);

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.