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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

How to make overloading method __call available in templates?




27 January 2011 at 7:15pm Community Member, 13 Posts

For example:

class My_Controller extends Page_Controller {

public function __call($name, $arguments) {

//return custom __call


// return parent::__call($name, $arguments);



The overloaded method call is unable to parse and get the value in the template. Are there any workaround on that other than defining methods manually?