function init() { parent::init(); if ($this->responsible_namespace == null) { throw $this->exception('Define class variable "responsible_namespace"'); } if ($this->responsible_view == null) { throw $this->exception('Define class variable "responsible_view"'); } $this->setAttr('data-responsible-namespace', $this->responsible_namespace); $this->setAttr('data-responsible-view', $this->responsible_view); $this->setAttr('data-is-serverside-component', 'true'); }