More compatibility with autoloading

This commit is contained in:
Michael RICOIS 2013-10-17 06:26:00 +00:00
parent 05948d8bcc
commit f7342f1ffa
4 changed files with 24 additions and 26 deletions

View File

@ -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');

View File

@ -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);

View File

@ -1,5 +1,5 @@
<?php
class DetectMobile
class Scores_Mobile_Detect
{
public function isMobile()
{

View File

@ -1,5 +1,5 @@
<?php
class wkhtmltopdf
class Scores_Wkhtml_Pdf
{
protected $wkhtml;