Implemented color filter

This commit is contained in:
Kevin Frantz
2018-07-15 00:06:56 +02:00
parent 1bc7219caa
commit 401fa64733
7 changed files with 75 additions and 25 deletions

View File

@@ -53,9 +53,7 @@ final class Router implements RouterInterface
$productController = new Product($this->core);
switch ($this->get['action']) {
case 'list':
return $productController->list();
case 'color':
return $productController->colorFilter($this->get['color']);
return $productController->list(($this->get['color'])?$this->get['color']:null);
}
case 'order':
$orderController = new Order($this->core);