22 lines
543 B
PHP
22 lines
543 B
PHP
<?php
|
|
|
|
namespace Portfolio\Source\Design\Controller\Test\Read;
|
|
|
|
use Portfolio\Source\Design\Controller\Base;
|
|
|
|
class Read extends Base
|
|
{
|
|
public function read(int $id)
|
|
{
|
|
$requestDatabase = $this->databaseConnection->get_pdo()->query('SELECT * FROM Test');
|
|
$test = $requestDatabase->fetchAll();
|
|
foreach ($test as $tests) {
|
|
echo $tests->id;
|
|
echo " - ";
|
|
echo $tests->label;
|
|
echo " <br> ";
|
|
}
|
|
|
|
return $this->show('test.read.read', ['id' => $id]);
|
|
}
|
|
} |