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'); }
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'); }
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'); }
public function updateSocial() { Admincontrol_helper::is_logged_in($this->session->userdata('userName')); $this->Hoosk_model->updateSocial(); redirect('/admin', 'refresh'); }