Delete uploaded files on delete record
- Single Page
Posted 07 November 2011 - 10:23 AM
I used "$crud->callback_before_delete(array($this,'onDelete'));" in my index() function
and
function onDelete($theid)
{
}
How can i use $theid in order to delete the file? The field's name is 'foto'
Thank you.
Posted 01 December 2011 - 11:26 AM
Also when you have a "_n_n" (i have 3 db's - products, product_images, product_images_relational) - and i'm showing the products and the images in 1 render as 1db. I want when i delete the product -> to remove all the entries from all the db's and all the images from the server.
Posted 04 December 2011 - 07:03 AM
Users Table => id , username
OrdersTable => order_id,user_id, qty,total
I need to link these two tables with . id and user_id.
how can i do this ?
Posted 04 December 2011 - 09:46 AM