/** * Saves page ordering * */ public function save_ordering() { if (!Authority::can('edit', 'admin/page')) { $this->error(lang('permission_denied')); } $order = $this->input->post('order'); if ($order !== FALSE) { // Clear the cache Cache()->clear_cache(); // Saves the new ordering $this->page_model->save_ordering($order); // Answer sent $this->success(lang('ionize_message_page_ordered')); } else { $this->error(lang('ionize_message_operation_nok')); } }