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.

Customising the CMS

Function called twice int the controller


Reply

280 Views

Avatar
Sultan

23 April 2013 at 11:02pm Community Member, 8 Posts

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