Since you are pointing to a real file that exists and is readable (right?) your problem is probably not header.
The url method is for controllers and actions. Try using the webroot method. You supply it with the path you want and it will add the base url for you. echo $html->webroot('css/screen.css') //--> /css/screen.css Under a normal production install that would simply be adding the initial /. /Martin On Aug 11, 4:54 pm, RugerJ <hoogervo...@gmail.com> wrote: > How can you show a pdf file within a view without setting the header > to pdf. > > I tried to embed it like this: > > <EMBED SRC="<?php echo $html->url('/app/webroot/files/userfile/'. > $uploads['FileUpload']['subdir'].'/'.$uploads['FileUpload'] > ['file_name']);?>#toolbar=0&statusbar=0&messages=0&navpanes=0" > HEIGHT=450 WIDTH=555> <NOEMBED> Your browser does not support embedded > PDF files. </NOEMBED> </EMBED> > > But that doesn't work because of the routing >> says controller not > found. > Is there a way around? > > Thnx in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---