Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

<% If function($param) %>


Go to End


1282 Views

Avatar
domek

Community Member, 1 Post

10 July 2009 at 2:40am

Why this doesn't work in a template:
<% if isSubmitted($Email) %>

I have this function in the controller:

class PageSomething_Controller extends Page_Controller {

public function isSubmitted($x) { }

and I have $Email in the CMS:

class PageSomething extends Page {
static $db = array( 'Email' => 'Text',
);