Hi,
I am using grocery crud at back end in my project, is it possible to temporary delete data and when i restore data it will be store
to the corrosponding table?
Thanks!
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 20 February 2013 - 09:48 AM
Hi,
I am using grocery crud at back end in my project, is it possible to temporary delete data and when i restore data it will be store
to the corrosponding table?
Thanks!
Posted 20 February 2013 - 22:48 PM
Make your own model and perform there any specialized backup/restore SQL queries, http://www.grocerycrud.com/documentation/options_functions/set_model
Then use these model functions in a controller function or even under one of the callbacks, callback_(after)_insert, callback_(after)_update, callback_(after)_delete
http://www.grocerycrud.com/documentation/options_functions
Posted 22 February 2013 - 12:38 PM
thanks for your reply davidoster , i will try this :)