changed repo structure
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
class CanteenController
|
||||
{
|
||||
public function index($router)
|
||||
{
|
||||
$food = new CanteenModel(0);
|
||||
if(isset($_GET['price'])) {
|
||||
return $router->view('index', ['food' => $food->filterFood($_GET['price'])]);
|
||||
}
|
||||
return $router->view('index', ['food' => $food->getFood()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user