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 /

<% If function($param) %>


Reply


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