protected function _createFilterChain() { if (!$this->config->get('debug')) { $this->filter = array_diff($this->filter, array('Debugtoolbar')); } parent::_createFilterChain(); }