Exemplo n.º 1
0
 /**
  * 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);
     }
 }
Exemplo n.º 2
0
 /**
  * çı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');
 }