?
<?php
class MapController extends Zend_Controller_Action
{
public function init()
{
$session = Zend_Registry::get('session');
$translate = Zend_Registry::get('translate');
// si la langue n'existe pas
$this->view->actionCourante = $this->view->layout()->actionactif;
$this->view->translate = $translate;
$ln = $this->_request->getParam('page');
$cuvee = $this->_request->getParam('cuvee');
$session->cuvee = $cuvee;
$this->view->ln = $ln;
if((ENV == "local") || (ENV == "preprod"))
{
$this->view->robots = "noindex, nofollows";
}
else
{
$this->view->robots = "index, follows";
}
$actionCourante = $this->view->layout()->actionactif;
$page = $actionCourante;
header('Accept-Encoding: gzip, deflate');
}
public function maptotalAction()
{
$annee = My_Outils_Date::anneEnCours();
$this->view->annee_encours = $annee;
$this->_helper->layout()->setLayout('maptotal');
$this->view->TitrePage = $this->view->titrepage." - Map";
$this->view->DescriptionPage= "Sélection street View ...";
$data = Data::listMapfun();
$tab = array();
$i = 0;
while($i < count($data))
{
$tab[$i]['nom'] = $data[$i]['nom'];
$tab[$i]['Lat'] = $data[$i]['Lat'];
$tab[$i]['Lng'] = $data[$i]['Lng'];
$tab[$i]['heading'] = $data[$i]['heading'];
$tab[$i]['pitch'] = $data[$i]['pitch'];
$tab[$i]['titre'] = $data[$i]['titre'];
$tab[$i]['description'] = $data[$i]['description'];
$i++;
}
$this->view->tab = $tab;
}
}