/** * silme * * @param int $post_id * @return mixed */ public function delete($post_id) { if ($this->request->getMethod() == 'GET') { $this->post->Catdelete($post_id); \Lib\Url::redirect('admin/' . $this->post_name); } }
/** * çıkış yap */ public function logout() { \Lib\Session::destroy('loggedin'); \Lib\Session::destroy('kullanici_bilgileri'); \Lib\Session::destroy('stncart'); \Lib\Session::destroy('teslimatZamani'); \Lib\Session::destroy('sepetStokSorunu'); \Lib\Url::redirect('uyelik'); }