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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Function called twice int the controller


Go to End


626 Views

Avatar
Sultan

Community Member, 8 Posts

23 April 2013 at 11:02pm

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