questi sono i 2 metodi (in classi differenti) del tutto simili/uguali che "agiscono su 2 tabelle diverse:
PHP:
public function list() {
return ['title' => 'News list',
'template' => 'ntn7_listnews.html.php',
'variables' => [
'news' => $this->newsTable->findAll()
]
];
}
PHP:
public function list() {
return ['title' => 'Lista Campionati',
'template' => 'ntn7_listcamp.html.php',
'variables' => [
'camps' => $this->campTable->findAll()
]
];
}