/** * Saves Items ordering * * @return String Success or error message * */ function save_ordering() { $order = $this->input->post('order'); if ($order !== FALSE) { // Saves the new ordering $this->item_model->save_ordering($order); // Answer $this->success(lang('ionize_message_operation_ok')); } else { $this->error(lang('ionize_message_operation_nok')); } }