本文整理匯總了PHP中files::delete_file方法的典型用法代碼示例。如果您正苦於以下問題:PHP files::delete_file方法的具體用法?PHP files::delete_file怎麽用?PHP files::delete_file使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類files
的用法示例。
在下文中一共展示了files::delete_file方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delete
public function delete()
{
$my_product = $this->product_m->get_by('user', $this->current_user->id);
$product_id = $my_product->id;
$attachment = $my_product->business_logo;
/*echo $solution_id;
echo "<br>";
echo $attachment;
die();*/
$this->product_single($product_id);
if ($this->product_m->delete($product_id)) {
}
$this->load->library('files/files');
files::delete_file($attachment);
$this->session->set_flashdata('status', 'Your Business Listing has been deleted.');
redirect('membership/mysb');
}