Jump to:

5520 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Function called twice int the controller

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

Page: 1
Go to End
Author Topic: 253 Views
  • Sultan
    Avatar
    Community Member
    8 Posts

    Function called twice int the controller Link to this post

    My function which i have included in the class Page_Controller extends ContentController {
    function myfunction{
    // contents
    }
    }
    is called twice if i try to call it from the template.

    That is in Page.ss if i try to call the function $myfunction then the function return value increments with two..

    253 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.