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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

<% If function($param) %>


Go to End


1011 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',
);