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.