1505 Posts in 474 Topics by 460 members
Form Questions
SilverStripe Forums » Form Questions » Please Help-Blank Page in Admin Menu on Form Submit
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 850 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.
| 850 Views | ||
|
Page:
1
|
Go to Top |


