|
Hi,
i successfully extended the class Mage_Catalog_Block_Product_View according to those howtos:
- How To Create a Featured Product
- Changing and Customizing Magento Code
But what is the correct way to extend Mage_Core_Model_App?
my extension class in app/code/local/Xxx/Core/Model/App.php
<?php class Xxx_Core_Model_App extends Mage_Core_Model_App { public function __construct() { parent::__construct(); // output to file in order to identify which class is loaded } } ?>
my config in app/etc/modules/Xxx_Core.xml
<?xml version="1.0"?> <config> <modules> <Xxx_Core> <active>true</active> <codePool>local</codePool> </Xxx_Core> </modules> </config>
my config in app/code/local/Xxx/Core/etc/config.xml
<?xml version="1.0"?> <config> <global> <models> <core> <rewrite> <app>Xxx_Core_Model_App</app> </rewrite> </core> </models> </global> </config>
I disabled all caches, but my extension class is not loaded by magento.
And by the way: is there any function for debug output or a variable to append it to?
|