Pagination Sort in Cakephp 3.x
In cakephp 3.x kann ich keine paginierte Reihenfolge in einem Fund ausführen
Das ist mein Controller:
//AgentsController.php
public function show()
{
$agents = $this->Agents->find()
$this->set('agents', $this->paginate($agents));
}
Und hier ein Teil meiner Sichtweise
//show.ctp
<!-- ....... -->
<table class="table table-striped">
<thead>
<tr>
<th>
<?php echo $this->Paginator->sort('full_name', 'Nome', array('escape' => false)); ?>
</th>
<th>
<?php echo $this->Paginator->sort('username', 'Email', array('escape' => false)); ?>
</th>
<th>
<?php echo $this->Paginator->sort('regions', 'Regioni', array('escape' => false)); ?>
</th>
</tr>
</thead>
<!-- ....... -->
Wo irre ich mich?