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, Ed, biapar, Willr, Ingo, swaiba

How to make overloading method __call available in templates?

Go to End



Community Member, 13 Posts

27 January 2011 at 7:15pm

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?