Stable
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
class Menu {
|
||||
private array $menu = [];
|
||||
|
||||
public function __construct() {
|
||||
$this->conn = new Connection();
|
||||
}
|
||||
|
||||
public function getMenu() {
|
||||
$sql = "SELECT * FROM menu";
|
||||
$result = $this->conn->getConnection()->query($sql);
|
||||
$this->menu = $result->fetchAll();
|
||||
return $this->menu;
|
||||
}
|
||||
<?php
|
||||
class Menu {
|
||||
private array $menu = [];
|
||||
|
||||
public function __construct() {
|
||||
$this->conn = new Connection();
|
||||
}
|
||||
|
||||
public function getMenu() {
|
||||
$sql = "SELECT * FROM menu";
|
||||
$result = $this->conn->getConnection()->query($sql);
|
||||
$this->menu = $result->fetchAll();
|
||||
return $this->menu;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user