how can i use dataobjectdecorator to override a Page_Controller's init method?
I'm trying this, but it isnt overriding init.. (it will override index() though)
class PodcastController extends DataObjectDecorator {
public function init(){
Debug::dump('testing init call');
}
}
_config.php:
...
DataObject::add_extension('Page_Controller', 'PodcastController');
...
thanks alot,
-Chris