diff --git a/core/Controller.inc b/core/Controller.inc index c2814e99..47b5e0a5 100644 --- a/core/Controller.inc +++ b/core/Controller.inc @@ -165,10 +165,6 @@ // Response speichern $this->response = $response; - - // Linker erstellen - $this->set('linker', new \nre\core\Linker($request)); - } @@ -325,6 +321,15 @@ if(!is_array($components)) { $components = array($components); } + // Components of parent classes + $parent = $this; + while($parent = get_parent_class($parent)) + { + $properties = get_class_vars($parent); + if(array_key_exists('components', $properties)) { + $components = array_merge($components, $properties['components']); + } + } // Load components foreach($components as &$component)