I am trying to overload my main Page_Controller class from a custom class in a module:
I have made a class module/code/MyPage.php
class MyPage_Controller extends Page_Controller {
....
}
In the module _config.php I put:
Object::useCustomClass('Page', 'MyPage');
Doesn't seem to do anything?
If I put the functions in the main Page_Controller website/code/Page.php then they are available, my problem is seeing that these functions belong to the module I would like to keep them separate but they still need to be available to every Page.
Anyone have any ideas on how to achieve this?