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
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.
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.
Why not add your own new dashboard page instead of altering the core's dashboard page?
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
Thanks