/**
  * Generar el arbol de años y meses donde hay histórico
  * @return array
  */
 public function IndexAction()
 {
     $archivo = $this->request[2];
     if ($archivo == '') {
         $carpetas = Archivo::getDirectorios("docs/docs{$_SESSION['emp']}/log");
         $historico = array();
         foreach ($carpetas as $carpeta) {
             $historico[substr($carpeta, 0, 4)][substr($carpeta, 4, 2)] = $carpeta;
         }
         $this->values['historico'] = $historico;
         $template = "list.html.twig";
     } else {
         $fileLog = "docs/docs{$_SESSION['emp']}/log/{$archivo}";
         $detalle = $this->leeArchivo($fileLog);
         $this->values['detalle'] = $detalle;
         $this->values['fileLog'] = $fileLog;
         $template = "detalle.html.twig";
         //print_r($detalle);
     }
     return array('values' => $this->values, 'template' => "{$this->entity}/{$template}");
 }
 /**
  * Borrar todas las circulares generadas
  * @return type
  */
 public function BorrarAction()
 {
     $archivos = Archivo::getDirectorios($this->pathCirculares);
     foreach ($archivos as $archivo) {
         unlink($this->pathCirculares . "/" . $archivo);
     }
     return $this->IndexAction();
 }