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

Using add_extension() to extend Controller functionality


Reply

1509 Views

Avatar
jhirm

27 April 2009 at 11:21pm Community Member, 21 Posts

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.