Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getMenuById($id)
- {
- return $this->db->get_where('user_menu', ['id' => $id])->row_array();
- }
- public function editNewMenu()
- {
- $data = [
- "menu" => $this->input->post('menu', true)
- ];
- $this->db->where('id', $this->input->post('id'));
- $this->db->update('user_menu', $data);
- }
- public function deleteMenuById($id)
- {
- $this->db->where('id', $id);
- $this->db->delete('user_menu');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement