# \[gelöst\] $this Variable im Controller leeren?

**URL:** <https://forum.shopware.com/t/gelost-this-variable-im-controller-leeren/6558>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [20. März 2012 um 11:51 UTC](https://forum.shopware.com/t/gelost-this-variable-im-controller-leeren/6558 "2012-03-20T11:51:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAiS46](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TAiS46](https://forum.shopware.com/u/TAiS46)\
**Post date:** [20. März 2012 um 11:51 UTC](https://forum.shopware.com/t/gelost-this-variable-im-controller-leeren/6558/1 "2012-03-20T11:51:05Z")

</div>

Hallo, ich habe gerade ein kleines Problem und finde keine Lösung! Ich rufe in einem Controller eine Klasse zur Erstellung einer blowfishverschlüsselung auf! Diese Klasse verwendet auch die Variable $this. `$BlowFish = new ctBlowfish; $this-\>View()-\>data = $BlowFish-\>ctEncrypt($string, strlen($string), $config-\>password);` Als Fehler erhalte ich dann immer `Fatal error: Cannot use object of type Shopware as array in` Habe auch schon versucht, $this = null; oder unset($this); vor dem Aufruf der Klasse zu nutzen, hat aber leider nicht geklappt. $this beinhaltet dann Daten von Shopware! Hat vielleicht einer eine Idee dazu? Lg
