title: On Action or Controller Change Callback in CakePHP 2.x
body: <p>I have come across a problem with I am having a edit form, so what I want to achieve is if user edits an item it gets locked so other user can not edit this item at the same time. I want something that when user clicks on other link it unlocks the item. Please don't suggest on unload because it will not not work on iOS Safari.</p>
  
  <p>If anyone can give me steps/concept that would help a lot.</p>
  
  <p>Thanks.</p>