From 7fb607b48c181512b31f52a7ef7e302f331ec18d Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 5 Dec 2018 18:37:30 +0100 Subject: mediastyle --- app/class/controllerhome.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/class/controllerhome.php') diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php index 4d5feb8..1309adb 100644 --- a/app/class/controllerhome.php +++ b/app/class/controllerhome.php @@ -48,6 +48,15 @@ class Controllerhome extends Controller } + public function search() + { + if(isset($_POST['id']) && !empty($_POST['id'])) { + $this->routedirect('artread/', ['art' => $_POST['id']]); + } else { + $this->routedirect('home'); + } + } + -- cgit v1.2.3