Dynamically calling data in mail and pdf function in codeigniter PHP
问题 I am working on a project where client want to send a PDF copy to vendor as soon as they mark order as receive . i have successfully export the PDF of particular order, i called the mail function in the same function , so that whenever PDF is generated a mail is sent with the attached PDF which is generated from html using mpdf library .. the problems i am facing are - > the name of the PDF file in mpdf is static.. like xyz.pdf . when i write "xyz".$order['order_id']".pdf" it doesn't work ..