protected function createComponent($name) { try { $callback = $this->getPresenter()->context->getItem($name)->componentCallback; return $callback($this, $name); } catch (\Exception $e) { try { $callback = $this->getContext()->getComponent($name); return $callback($this, $name); } catch (\Exception $e) { try { return parent::createComponent($name); } catch (\Exception $e) { echo "xxx"; } } } }