Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public function save_order() { $facilities_array = $_POST['facilities_id']; $order_array = $_POST['order']; $facilities = new Facilities(); foreach ($facilities_array as $key => $value) { $facilities_id = $value; $facilities_order = $order_array[$key]; $facilities->update('Facilities', array('sequence' => $facilities_order), 'id=' . $facilities_id); } Flash::set('success', __('This facilities sequence has been saved.')); redirect(get_url('facilities')); }