Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

764 Posts in 245 Topics by 252 members

Form Questions

SilverStripe Forums » Form Questions » Please Help-Blank Page in Admin Menu on Form Submit

Page: 1
Go to End
Author Topic: Please Help-Blank Page in Admin Menu on Form Submit 434 Views
  • bharath
    avatar
    Community Member
    3 posts

    Please Help-Blank Page in Admin Menu on Form Submit Link to this post

    Blank Page in Admin Menu on Form Submit Link to this post

    30 April 2009 at 6:35pm
    edit Mark as Spam

    Hi all,

    I am New to silverstripe and my version silverstripe 2.2.3

    I am experiencing the problem when ever i submit the form page such as contact or subscribe page all the details are saving in database but creating a new blank page on Admin Menu.

    Please help to get out of this problem

  • Hamish
    avatar
    Community Member
    608 posts

    Re: Please Help-Blank Page in Admin Menu on Form Submit Link to this post

    Most probably, you are not returning anything from the action that saves the data.

    For example, if the action is called doSave:

    function doSave($form, $data) {

       // Save your data

       return array();
    }

    The return call gives sapphire something to render. Alternatively, you could do:

       return $this->renderWith(array('DataSaved', 'Page'));

    to return the DataSaved template.

    You could also solve the problem by creating a template with the name of the page and action:

    Page_doSave.ss

    This becomes the default template for this action.

    434 Views
Page: 1
Go to Top

Currently Online: Euphemismus

Welcome to our latest member: fearofbuttons

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.