Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Adding external php file with
Sibin
April 2016
how to add external php file with view?
Harro
April 2016
What do you mean by "external php file"?
Sibin
April 2016
i used mpdf for pdf generation., so , i have to include mpdf library into my vieww
Harro
April 2016
Accepted Answer
You should never add code to views, views are for generating output.
For PDF generation you can use my PDF package:
https://github.com/WanWizard/fuel-pdf
It contains the most used packages including mPDF, but your will probably need to update it to the latest version.
Harro
April 2016
Alternatively use composer to install mpdf (
https://packagist.org/packages/mpdf/mpdf
) and just use it as documented in the mpdf documentation.
Sibin
April 2016
ok, thanks
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
April 2016
Sibin
April 2016