Jump to:

3447 Posts in 1032 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » <% If function($param) %>

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

Page: 1
Go to End
Author Topic: 697 Views
  • domek
    Avatar
    Community Member
    1 Post

    <% If function($param) %> Link to this post

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

    697 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.