This helper extends the core helper and adds a fuction that compares the values of two associative arrays based on their intersection of keys.
Copy MY_array_helper.php to application/helpers folder.
Load array helper:
$this->load->helper('array');
Use it:
if (!compare($data['article'], $this->input->post())) {
//Do something like create a revision
}
//Then update your article
Copyright (©) 2012 Dimitris Krestos. See LICENSE for details.