Auth->allow(['index']); } public function test() { $entry = TableRegistry::get('EventCategoryParticipantEntries')->newEntity(); $entry->errors('emy_contact_no.code', 'test'); $this->set(compact('entry')); } }