Generate PDF files with the CakePHP
This plugin provides next features:
CakePHP 1.3 Manual 677 Pages 2011 4.52 MB 0 Downloads Welcome to the Cookbook, the manual for the CakePHP web application CakePHP is a free, ope.
- Generate PDF files
Installation
- Install the Plugin using composer:
composer require anklimsk/cakephp2-tcpdf
- Add the next line to the end of the file
app/Config/bootstrap.php
:
Using this plugin
![Generate Pdf Cakephp 1.3 Generate Pdf Cakephp 1.3](/uploads/1/2/6/2/126228136/869286613.jpg)
- In your
Model
:- Create the following methods:
- In your
Controller
:- Add the
RequestHandler
component toAppController
, and mappdf
tothe CakeTCPDF plugin, e.g.: - Add to your controller action:
- In your
View
:- Create a link to the a action with the extension
.pdf
, e.g.: - Place the View templates in the subdirectory
Pdf
, e.g.:app/View/Invoices/Pdf/index.ctp
- Use the
CakeTCPDF.exportPdfTable
element in your View file, e.g.: - Use the
CakeTCPDF.exportPdfTableContent
element in your View file, e.g.:
Generate PDF files with the CakePHP
This plugin provides next features:
Cakephp 2
- Generate PDF files
Installation
Cakephp 3 Tutorial
- Install the Plugin using composer:
composer require anklimsk/cakephp2-tcpdf
- Add the next line to the end of the file
app/Config/bootstrap.php
:
Using this plugin
Cake Php 1.3 Download
- In your
Model
:- Create the following methods:
- In your
Controller
:- Add the
RequestHandler
component toAppController
, and mappdf
tothe CakeTCPDF plugin, e.g.: - Add to your controller action:
- In your
View
:- Create a link to the a action with the extension
.pdf
, e.g.: - Place the View templates in the subdirectory
Pdf
, e.g.:app/View/Invoices/Pdf/index.ctp
- Use the
CakeTCPDF.exportPdfTable
element in your View file, e.g.: - Use the
CakeTCPDF.exportPdfTableContent
element in your View file, e.g.: