See example below.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/yii2-dompdf-formatter "*"
or add
"bariew/yii2-dompdf-formatter": "*"
to the require section of your composer.json
file.
Define app component in main config components section like in this example:
'components' => [
...
'formatters' => [
'pdf' => [
'class' => 'bariew\components\ResponseFormatter',
],
],
]
No stable releases.
Comments