Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » How to make overloading method __call available in templates?

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

Page: 1
Go to End
Author Topic: 567 Views
  • ordinarywebguy
    Community Member
    13 Posts

    How to make overloading method __call available in templates? Link to this post

    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?

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.