Deprecated: Cubetech\Base\Navigation implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/nelsonl1/www/therapiezimmer.ch/wp-content/themes/wptheme.therapiezimmer.ch/src/Base/Navigation.php on line 16

Deprecated: Cubetech\Base\MenuItem implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/nelsonl1/www/therapiezimmer.ch/wp-content/themes/wptheme.therapiezimmer.ch/src/Base/MenuItem.php on line 12
TherapieZimmer.ch

Dynamischer Pfad new Class

$path = "\Main\Cards"; 
$typeName = ucfirst(substr($this->name, 0, strpos($this->name, '-'))).'Card';
$backSalshWhitSpace = " \ ";
$backSalsh =  str_replace(' ', '', $backSalshWhitSpace);;
$class = $path.$backSalsh.$typeName;
$card = new $class($this->id);
$card->render();