Eine Extension in Magento aktivieren

Damit eine Extension geladen und aktiviert wird, muss eine XML-Datei im Verzeichnis /app/etc/modules/ angelegt werden, die auf das Extension-Verzeichnis verweist. Während des Ladevorgangs parst Magento automatisch alle XML-Dateien in diesem Verzeichnis.

Das folgende Listing zeigt den Aufbau der Aktivierung unseres Beispielmoduls Webkochshop_HelloWorld im Verzeichnis /app/etc/modules/:

<?xml version="1.0"?>
<config>
    <modules>
        <!-- Modul app/code/local/Webkochshop/HelloWorld aktivieren -->
        <Webkochshop_HelloWorld>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
                <Mage_Core/>
            </depends>
        </Webkochshop_HelloWorld>
    </modules>
</config>

Beachten Sie das Tag <Webkochshop_HelloWorld>. Es wird beim Parsen der ...

Get Magento: Das Handbuch für Entwickler now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.