I need to override the discussion controller in my blog addon. how to do.
I have need to override the:
$discussion_settings = Registry::get('addons.discussion');
this to :
$blog_setting=Registry::get('addons.blog');
$discussion_object_types=array_merge($discussion_object_types,$blog_arr);
$discussion_settings=array_merge($discussion_settings,$blog_setting);
how to override the discussion controller in my blog addons.
Please try to add file app/addons/blog/controllers/frontend/init.pre.php