Correction clé de config
This commit is contained in:
parent
b32e774795
commit
a8687aac5e
@ -20,7 +20,7 @@ class EnvoiController extends Zend_Controller_Action
|
|||||||
|
|
||||||
//Récupérer les clients
|
//Récupérer les clients
|
||||||
$c = Zend_Registry::get('config');
|
$c = Zend_Registry::get('config');
|
||||||
$sqlmetier = Zend_Db::factory($c->profil->db->jo);
|
$sqlmetier = Zend_Db::factory($c->profil->db->metier);
|
||||||
$sql = $sqlmetier->select()
|
$sql = $sqlmetier->select()
|
||||||
->from('sdv1.clients', array('id', 'nom'))
|
->from('sdv1.clients', array('id', 'nom'))
|
||||||
->where("actif = 'Oui'");
|
->where("actif = 'Oui'");
|
||||||
|
@ -41,7 +41,7 @@ class IndexController extends Zend_Controller_Action
|
|||||||
|
|
||||||
//Récupérer les clients
|
//Récupérer les clients
|
||||||
$c = Zend_Registry::get('config');
|
$c = Zend_Registry::get('config');
|
||||||
$sqlmetier = Zend_Db::factory($c->profil->db->jo);
|
$sqlmetier = Zend_Db::factory($c->profil->db->metier);
|
||||||
$sql = $sqlmetier->select()
|
$sql = $sqlmetier->select()
|
||||||
->from('sdv1.clients', array('id', 'nom'))
|
->from('sdv1.clients', array('id', 'nom'))
|
||||||
->where("actif = 'Oui'");
|
->where("actif = 'Oui'");
|
||||||
|
Loading…
Reference in New Issue
Block a user