$this->Output(/path/to/file);
On Tuesday, April 3, 2012 3:53:17 PM UTC+3, DigitalDude wrote:
>
> Hey,
>
>
> I'm experimenting with TCPDF and everything is working fine so far. I
> am able to create a PDF Document, set some layout and make the pdf
> available to the user. The user can donwload the file after it's
> creation and the document looks fine.
>
> What I need to do now is to change this to save the file in a given
> directory, because I need to send the created PDF document as
> attachment via email.
>
> The code within my action is just;
>
> $this->layout = 'pdf';
> $this->render('view_pdf');
>
> As you can see, I'm using a seperate layout for the PDF and a view
> where variables are set and some layout is done by html.
>
> Does anyone know how to accomplish the saving of the created PDF to a
> directory of the server, so I can "grab" it later and send it via
> email?
>
>
> Regards,
>
> DD
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php