Jump to:

5542 Posts in 1739 Topics by 1225 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: 271 Views
  • Sultan
    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..

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.