Autoloading : Add Export Csv to a new class
This commit is contained in:
parent
763dd9b483
commit
83d80a5045
@ -1182,8 +1182,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
$c = Zend_Registry::get('config');
|
||||
$file = $c->profil->path->files . '/'.$user->getIdClient().'-'.$user->getLogin().'-'.date('YmdHis').'.csv';
|
||||
|
||||
require_once 'Scores/ExportCSV.php';
|
||||
$export = new ExportCSV($etabs, 'rechercheEntreprise');
|
||||
$export = new Scores_Export_ArrayCsv($etabs, 'rechercheEntreprise');
|
||||
$export->writeFile($file);
|
||||
|
||||
$content_type = 'application/csv-tab-delimited-table';
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class ExportCSV
|
||||
class Scores_Export_ArrayCsv
|
||||
{
|
||||
protected $entete = array();
|
||||
protected $enteteKey = array();
|
Loading…
Reference in New Issue
Block a user