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.

Template Questions /

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

<% If function($param) %>


Go to End
Reply


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