Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Using add_extension() to extend Controller functionality

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

Page: 1
Go to End
Author Topic: 1495 Views
  • jhirm
    Avatar
    Community Member
    21 Posts

    Using add_extension() to extend Controller functionality Link to this post

    I want to extend the functionality of a Controller using Object::add_extension(), and am not quite sure how to go about it. I'd like to override the PageController's init() function to add some security logic, but I'm not able to use methods defined in PageController in my extension because it inherits from Extension instead of PageController...

    Any ideas? Or can someone point me to some documentation that might be useful?

    Thanks.

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