?
<?php
class HeaderController extends Zend_Controller_Action
{
function headerAction()
{
$this ->_helper->viewRenderer->setResponseSegment('header');
$session = Zend_Registry::get('session');
$translate = Zend_Registry::get('translate');
$classMainMenu = array();
$this->view->langue = $session->lang;
$actionCourante = $this->view->layout()->actionactif;
$controllerCourant = $this->view->layout()->controlleractif;
$controller_action = $controllerCourant.$actionCourante;
$this->view->actionCourante = $this->view->layout()->actionactif;
$this->view->controllerCourant = $this->view->layout()->controlleractif;
$config = new Zend_Config_Xml(PUBLIC_PATH.'txt/social.xml', "social");
$this->view->reseaux = $config->element;
$nb = 100 / count($config->element);
$this->view->largeurlist = $nb."%";
}
}