More compatibility with autoloading
This commit is contained in:
parent
05948d8bcc
commit
f7342f1ffa
@ -462,8 +462,7 @@ class EvaluationController extends Zend_Controller_Action
|
||||
file_put_contents($outfile, $xml);
|
||||
|
||||
//Génération du pdf
|
||||
require_once 'wkhtmltopdf/wkhtmltopdf.php';
|
||||
$wkhtmltopdf = new wkhtmltopdf();
|
||||
$wkhtmltopdf = new Scores_Wkhtml_Pdf();
|
||||
$wkhtmltopdf->setOptions('footer-right', 'Page [page] sur [toPage]');
|
||||
$wkhtmltopdf->setOptions('header-right', date('d/m/Y H:i:s'));
|
||||
$wkhtmltopdf->setOptions('disable-external-links');
|
||||
|
@ -124,8 +124,7 @@ class PrintController extends Zend_Controller_Action
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'wkhtmltopdf/wkhtmltopdf.php';
|
||||
$pdf = new wkhtmltopdf();
|
||||
$pdf = new Scores_Wkhtml_Pdf();
|
||||
$pdf->setOptions('footer-right', 'Page [page] sur [toPage]');
|
||||
$pdf->setOptions('header-right', date('d/m/Y H:i:s'));
|
||||
$output_file = $pdf->exec($file);
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class DetectMobile
|
||||
class Scores_Mobile_Detect
|
||||
{
|
||||
public function isMobile()
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class wkhtmltopdf
|
||||
class Scores_Wkhtml_Pdf
|
||||
{
|
||||
protected $wkhtml;
|
||||
|
Loading…
Reference in New Issue
Block a user