How to extend magento controller from core
<!-- define frontend configuration of the module -->
<frontend>
<routers>
<catalog>
<use>standard</use>
<args>
<module>Mycompany_Catalog</module>
<!-- This is used when "catching" the rewrite above -->
<frontName>catalog</frontName>
</args>
</catalog>
</routers>
</frontend>
Example sitemap controller extension
require_once 'Mage/Catalog/controllers/Seo/SitemapController.php';
class Mycompany_Catalog_Seo_SitemapController extends Mage_Catalog_Seo_SitemapController
{
here your new actions
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home