Re: PDF reader in view without new header

2009-08-11 Thread RugerJ

Thnx Martin, that solved the problem ;-)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: PDF reader in view without new header

2009-08-11 Thread CobaltShark

Have you tried removing /app/webroot from the $html->url call? Not
sure if that will fix all your issues but that is where I would start.

On Aug 11, 7:54 am, RugerJ  wrote:
> How can you show a pdf file within a view without setting the header
> to pdf.
>
> I tried to embed it like this:
>
>  HEIGHT=450 WIDTH=555>  Your browser does not support embedded
> PDF files.  
>
> 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
-~--~~~~--~~--~--~---



Re: PDF reader in view without new header

2009-08-11 Thread Martin Westin

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  wrote:
> How can you show a pdf file within a view without setting the header
> to pdf.
>
> I tried to embed it like this:
>
>  HEIGHT=450 WIDTH=555>  Your browser does not support embedded
> PDF files.  
>
> 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
-~--~~~~--~~--~--~---



PDF reader in view without new header

2009-08-11 Thread RugerJ

How can you show a pdf file within a view without setting the header
to pdf.

I tried to embed it like this:

  Your browser does not support embedded
PDF files.  

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
-~--~~~~--~~--~--~---