/** * Saves ordering * */ public function save_ordering() { $order = $this->input->post('order'); if ($order !== FALSE) { // Saves the new ordering $this->menu_model->save_ordering($order); // UI update panels $this->_update_panels(); // Answer send $this->success(lang('ionize_message_menu_ordered')); } else { // Answer send $this->error(lang('ionize_message_operation_nok')); } }