diff options
Diffstat (limited to 'app/class/controllerhome.php')
-rw-r--r-- | app/class/controllerhome.php | 9 |
1 files changed, 9 insertions, 0 deletions
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'); + } + } + |