Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Generic Views AddForm: Blank page

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1171 Views
  • dendeffe
    Avatar
    Community Member
    135 Posts

    Generic Views AddForm: Blank page Link to this post

    I'm using generic views for some front end forms. For those who hade the SS book, it's quite similar to that.

    I load a Designer that has multiple References. I can edit Designer and References. But when I try to add a button to add References, I can't get it to work. I'm using this in Designer_view.ss:

    <a href="/references/Reference/AddForm">Add Reference</a>

    It redirects to /references/Reference/85/edit. Martijn explained to me that it automatically creates a new Record.

    But it's a completely blank page.

    My canCreate for Reference is set like this:

       public function canCreate($member = null) {
          return true;
       }

  • UncleCheese
    Avatar
    4085 Posts

    Re: Generic Views AddForm: Blank page Link to this post

    PHP error.. turn on error reporting and check your syntax.

  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: Generic Views AddForm: Blank page Link to this post

    That seems logical, but both my php_error.log and apache_error.log are empty.

    I've added my files that I think are relevant.

    Attached Files
    1171 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.