Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 9:30 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Mon Nov 05, 2007 6:39 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Nov 05, 2007 6:32 pm
Posts: 4
Hi there,

I have a little problem with upgarding my site to 1.5 .
In the past I had a component that showed me contracts, bills, etc... in pdf.

The Problem is now that my Component should send the right Content-Header, like application/pdf.
I tried something like :

Code:
$doc = &JDocument::getInstance();
$doc->setMimeEncoding("application/pdf");
$doc->setType("application/pdf");


But it doesn't work. I think the only way to check it, is to debug the code. But maybe somebody has an easy solution for me?

Thanks!


Top
  E-mail  
 
Posted: Mon Nov 05, 2007 6:52 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Nov 05, 2007 6:32 pm
Posts: 4
Ok, I found a solution myself....

$doc =& JFactory::getDocument();
$doc->setMimeEncoding('application/pdf');

thanks for reading :)


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: foreverlost and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group