public function __construct() { $this->setAddonConfig(); parent::construct(); if (method_exists($this, '__init')) { $this->__init(); } }