public function checkTheme() { // want to update ? if (isset($_GET['theme'])) { $this->theme->setTheme(htmlspecialchars($_GET['theme'])); Cookie::Add('theme', $this->theme->getTheme(), Cookie::MONTH); $this->template->clean(-1); } else { if (Cookie::Exists('theme')) { $this->theme->setTheme(Cookie::Get('theme')); } } }