Skip to content

Commit

Permalink
addesìd autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Feb 7, 2016
1 parent 15ed7b4 commit 4c1b417
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Javanile/LightPDF/mPDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
// ******************************************************************************

namespace Javanile\LightPDF;

use Javanile\LightPDF\classes\grad;
use Javanile\LightPDF\classes\form;
use Javanile\LightPDF\classes\cssmgr;
use Javanile\LightPDF\classes\TTFontFile;

function not_include($file) {}

Expand Down
26 changes: 26 additions & 0 deletions tests/test1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
*
*
*/

//
error_reporting(E_ALL);

//
ini_set('display_errors', 1);

//
require_once '../../../autoload.php';

//
use Javanile\LightPDF\mPDF;

//
$pdf = new mPDF();

//
$pdf->WriteHTML('<p>Hallo World</p>');

//
$pdf->Output('filename.pdf');

0 comments on commit 4c1b417

Please sign in to comment.