17688 Posts in 4607 Topics by 2180 members
General Questions
SilverStripe Forums » General Questions » If method=post (.ss template)
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 692 Views |
-
If method=post (.ss template)

4 July 2009 at 3:03am
I want a conditional in my .ss template for if a page was accessed via method=post.
-
Re: If method=post (.ss template)

4 July 2009 at 9:44pm
You would have to write your function in php and then call it from the template. The template has no control for this.
-
Re: If method=post (.ss template)

19 January 2011 at 3:40am
How do you 'call' php from the template then? Thanks.
-
Re: If method=post (.ss template)

19 January 2011 at 7:22am
You create a function in your Page controler, then call it from you template. Something like:
function IsPosted() {
// check and return false or true;
}<% if IsPosted %>
...
<% end_if %>
| 692 Views | ||
|
Page:
1
|
Go to Top |



