Thanks, but looks to me as an bug. I have baked all controller, model and templates and without any changes from my side the error occures. It is cake 5.2.10. A short example:
public function userMembers($id = null) {
$names = $this->request->getParam('pass');
$query = $this->Users->find()
->where(\['member LIKE' => '%' . $names\[0\] . '%'\])
->order(\['username' => 'ASC'\]);
$users = $this->paginate($query);
$this->set(compact('users'));
$this->set('group', $names);
}
<thead>
<tr>
<th><?= $this->Paginator->sort('Users.id') ?></th>
<th><?= $this->Paginator->sort('Users.username') ?></th>
<th><?= $this->Paginator->sort('Users.phone') ?></th>
<th><?= $this->Paginator->sort('Users.email') ?></th>
<th><?= $this->Paginator->sort('Users.city') ?></th>
</tr>
</thead>
without the header, the template runs correct. Any suggestion?? Kinde regards klaus