Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » getCMSAction and DataObject under SilverStripe 3.0/3.1

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: 156 Views
  • hello_world
    Avatar
    Community Member
    17 Posts

    getCMSAction and DataObject under SilverStripe 3.0/3.1 Link to this post

    Hi.
    I have tried to define new action in getCMSAction under DataObject.
    But it does not working.
    My code:

    public function getCMSActions() {

       $fields = parent::getCMSActions();
       $fields->push(new FormAction('doProcess','Process') );

    return $fields;
    }

    What I doing wrong?

    Thank for your help

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