do this when you output the pdf content:
header("Content-type: application/pdf");
echo $content_for_pdf;
exit();
On Monday, January 2, 2012 12:08:58 AM UTC-6, Arif wrote:
>
>
> Dear All,
>
> CAKEPHP Download Problem IN MAC PC Safari Browser :
>
> Currently My PDF File Possible to download by Moz
exo_duz,
I have something similar that may be useful to you,
its not the best way to do it but it gets the job done.
First, you need prototype and scriptaculous on your webroot/js/ folder
on your Controller:
class EventsController extends AppController {
var $name='Events';
var
For some reason the PagesController does not call the afterFilter()
method of the AppController (FYI: it does call the beforeFilter()
method)... adding the parent::afterFilter() before the $this-
>render(join('/', $path)) of the display() method of the
PagesController will fix this.
--~--~---