# File 'Bootstrap.php' has a false extension ??

**URL:** <https://forum.shopware.com/t/file-bootstrap-php-has-a-false-extension/4407>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [22. September 2011 um 13:28 UTC](https://forum.shopware.com/t/file-bootstrap-php-has-a-false-extension/4407 "2011-09-22T13:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmahr](https://avatars.discourse-cdn.com/v4/letter/x/3ec8ea/32.png) [@xmahr](https://forum.shopware.com/u/xmahr)\
**Post date:** [22. September 2011 um 13:28 UTC](https://forum.shopware.com/t/file-bootstrap-php-has-a-false-extension/4407/1 "2011-09-22T13:28:06Z")

</div>

Hallo Community, ok, jetzt ganz von vorn … die “Einführung Hook-System”. - Legen Sie das neue Verzeichnis Shopware\Plugins\Local\Frontend\myHook an. - Erstellen Sie in diesem Verzeichnis eine neue Datei Bootstrap.php. - Copy / Paste Beispielcode. `<?php class Shopware_Plugins_Frontend_myHook_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
   public function install()
   {
       $hook = $this->createHook( 'sArticles', 'sGetArticleById', 'onArticle', Enlight\_Hook\_HookHandler::TypeAfter, 0 ); $this-\>subscribeHook($hook); return true; } static function onArticle(Enlight\_Hook\_HookArgs $args) { } } ` - Das Plugin installieren und aktivieren Sie dann über den Plugin-Manager im Backend. ====\> Fehlermeldung: File ‘Bootstrap.php’ has a false extension Was mache ich falsch? Viele Grüße, Hans

---

<div class="post-metadata">

**Author:** ![xmahr](https://avatars.discourse-cdn.com/v4/letter/x/3ec8ea/32.png) [@xmahr](https://forum.shopware.com/u/xmahr)\
**Post date:** [22. September 2011 um 13:40 UTC](https://forum.shopware.com/t/file-bootstrap-php-has-a-false-extension/4407/2 "2011-09-22T13:40:09Z")

</div>

[quote=„xmahr“]Hallo Community, ok, jetzt ganz von vorn … die „Einführung Hook-System“. - Legen Sie das neue Verzeichnis Shopware\Plugins\Local\Frontend\myHook an. - Erstellen Sie in diesem Verzeichnis eine neue Datei Bootstrap.php. - Copy / Paste Beispielcode. `<?php class Shopware_Plugins_Frontend_myHook_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
   public function install()
   {
       $hook = $this->createHook( 'sArticles', 'sGetArticleById', 'onArticle', Enlight\_Hook\_HookHandler::TypeAfter, 0 ); $this-\>subscribeHook($hook); return true; } static function onArticle(Enlight\_Hook\_HookArgs $args) { } } ` - Das Plugin installieren und aktivieren Sie dann über den Plugin-Manager im Backend. ====\> Fehlermeldung: File ‚Bootstrap.php‘ has a false extension Was mache ich falsch? Viele Grüße, Hans[/quote] Alles klar … hatte die Bootstrap.php manuell in den Ordner kopiert. Damit entfällt wohl „Plugins hinzufügen“ … Aktualisieren ist das Zauberwort!
