Simplification
This commit is contained in:
parent
f5f3711cbf
commit
21f4d8824c
@ -11,9 +11,7 @@ class EconomiqueController extends Libs_Controller
|
||||
{
|
||||
require_once('Scores/Field.php');
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
$this->view->fields = $field;
|
||||
}
|
||||
|
||||
|
@ -11,9 +11,7 @@ class EntrepriseController extends Libs_Controller
|
||||
{
|
||||
require_once('Scores/Field.php');
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
$this->view->fields = $field;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ class FinancierController extends Libs_Controller
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
$this->view->fields = $field;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ class GeographiqueController extends Libs_Controller
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
$this->view->fields = $field;
|
||||
}
|
||||
|
||||
|
@ -12,9 +12,7 @@ class JuridiqueController extends Libs_Controller
|
||||
{
|
||||
require_once('Scores/Field.php');
|
||||
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
$this->view->fields = $field;
|
||||
}
|
||||
|
||||
|
@ -68,10 +68,8 @@ class Object_Comptage extends Libs_Row
|
||||
$sessionValeur = $session->getCritere($key);
|
||||
$session->setCritere($key, $valeur);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
require_once 'Scores/Field.php';
|
||||
$field = new Fields($user->username);
|
||||
$field = new Fields();
|
||||
|
||||
//Comptage
|
||||
require_once 'Scores/Ciblage.php';
|
||||
@ -84,8 +82,8 @@ class Object_Comptage extends Libs_Row
|
||||
|
||||
//Retour comptage, unité Insee
|
||||
$result = array(
|
||||
'count' => number_format($total, 0, '', ' '),
|
||||
'insee' => number_format($insee, 0, '', ' ')
|
||||
'count' => number_format($total, 0, '', ' '),
|
||||
'insee' => number_format($insee, 0, '', ' ')
|
||||
);
|
||||
return (json_encode($result));
|
||||
}
|
||||
|
@ -772,7 +772,7 @@ Class Fields
|
||||
return ($value);
|
||||
}
|
||||
|
||||
public function __construct($login = null)
|
||||
public function __construct()
|
||||
{
|
||||
require_once('Scores/SessionCiblage.php');
|
||||
$session = new SessionCiblage();
|
||||
|
Loading…
Reference in New Issue
Block a user