active record foreign key... |
[eluser]psychoder[/eluser]
is there a way i can trap when the user delete the record which is associated with another record in another table ( foreign key constraints )... do i have to check it using another query??
[eluser]Bhashkar Yadav[/eluser]
I think, you are deleting records from the controller's method. so you can create a hook and associate as post_controller with the controller and method which deleting the records. In this way you can track if records have been deleted successfully.
[eluser]Bhashkar Yadav[/eluser]
for hooks, you can get help from here: http://ellislab.com/codeigniter/user-gui...hooks.html |
Welcome Guest, Not a member yet? Register Sign In |