Login | Forgot password | Register
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.
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 |
-
Please Help-Blank Page in Admin Menu on Form Submit

2 May 2009 at 4:16pm
Blank Page in Admin Menu on Form Submit Link to this post
30 April 2009 at 6:35pm
edit Mark as SpamHi 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
-
Re: Please Help-Blank Page in Admin Menu on Form Submit

5 June 2009 at 4:34pm
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


