Jump to:

23550 Posts in 19336 Topics by 2890 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: 183 Views
  • hello_world
    Community Member
    17 Posts

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

    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

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.