Jump to:

3430 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Undefined Action on Create - SS 2.4.11

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

Page: 1
Go to End
Author Topic: 296 Views
  • dylangrech92
    Avatar
    Community Member
    17 Posts

    Undefined Action on Create - SS 2.4.11 Link to this post

    I have a simple Product ModelAdmin:

    class ProductAdmin extends ModelAdmin{
       static $managed_models = array('Product','ProductTopList');
       static $url_segment = 'products';
       static $menu_title = 'Products';
    }

    and a very simple product DataObject:
    class Product extends DataObject{
       static $db = array(
          'Name' => 'Text',
          'WebAddress' => 'Text'
       );
    }

    Silverstripe in general is behaving very weird and by this I mean when I edit/create page I have to reload the admin to view the changes, but in the product it's even worse because it doesn't create the product. Here is the url that is being sent by ss on create:
    "http://exam1/undefined?action_doCreate=Add".

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