Overriding core single page controller in package

Permalink
Hi,
i whant to override core single page controller inside the package(/dashboard/forms/report page), so I try to do it with following code
$objEnv = Environment::get();
      $objEnv->overrideCoreByPackage('single_pages/dashboard/reports/forms.php', $this);
      $objEnv->overrideCoreByPackage('controllers/single_page/dashboard/reports/forms.php', $this);

but that didn't help. The thing that helped is to delete the existing page and istall it again. So is there some better, cleaner, way to do it, withouth having to delete something.

 
ob7dev replied on at Permalink Reply
ob7dev
Why not add your own new dashboard page instead of altering the core's dashboard page?
fatnica replied on at Permalink Reply
Yes, that's an option as well, but i was wondering if there is some nice easy way to override something in the package, and not to have to delete anything.
Thanks