Welcome Guest, Not a member yet? Register   Sign In
Generating a PHP and HTML page to PDF using mPDF
#2

[eluser]TheFuzzy0ne[/eluser]
First of all, you shouldn't need to make an HTTP request to get the profile information. You should be able to do that by querying your model, and using a view (the code you need should already be written in the show_profile() method of your Profile controller. By making that HTTP request, you are essentially doubling your server's load, because CodeIgniter is loaded twice in a single request.

Your problem is caused by the fact your HTTP request doesn't send any cookies, and therefore is not logged into your Web site.

Hope this helps.


Messages In This Thread
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 11:17 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 11:47 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 11:53 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 12:46 PM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 01:46 PM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-21-2013, 03:01 PM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-22-2013, 03:15 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-22-2013, 09:14 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-22-2013, 01:16 PM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-23-2013, 06:01 AM
Generating a PHP and HTML page to PDF using mPDF - by El Forum - 05-23-2013, 06:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB