Example #1
0
 public function delete()
 {
     Admincontrol_helper::is_logged_in($this->session->userdata('userName'));
     //Delete the post account
     $this->Hoosk_model->removePost($this->uri->segment(4));
     //Return to post list
     redirect('/admin/posts', 'refresh');
 }
Example #2
0
 public function deleteNav()
 {
     Admincontrol_helper::is_logged_in($this->session->userdata('userName'));
     //Delete the nav
     $this->Hoosk_model->removeNav($this->uri->segment(4));
     //Return to user list
     redirect('/admin/navigation', 'refresh');
 }
Example #3
0
 public function delete()
 {
     Admincontrol_helper::is_logged_in($this->session->userdata('userName'));
     //Delete the category account
     $this->Hoosk_model->removeCategory($this->uri->segment(5));
     //Return to category list
     redirect('/admin/posts/categories', 'refresh');
 }
Example #4
0
 public function updateSocial()
 {
     Admincontrol_helper::is_logged_in($this->session->userdata('userName'));
     $this->Hoosk_model->updateSocial();
     redirect('/admin', 'refresh');
 }