GroupEvents->setDataSource($this->Data->Events); $this->GroupEvents->dataBind(); } public function stripPrefix(string $string) { return preg_replace( '#^' . preg_quote($this->Data->Header) . '\s*#', '', $string ); } } ?>