Bonjour à tous,

Voilà j'ai un problème, c'est la fin de journée cela y joue peut être un peu. Voici mon pb :
J'affiche les données de ma base de données (BDD) avec le framework Zend, jusqu'à la tout va bien, voici d’ailleurs mon code :

-Le controller :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
<?php
class PageController extends Zend_Controller_Action
{	
public function validationAction()
    {
    	$this->view->title="Validation";
    	$this->view->headTitle($this->view->title, 'PREPEND');
 
    	$albums = new Application_Model_DbTable_Prestationsvalider();
    	$this->view->albums = $albums->fetchAll();
 
    }
}
Voici ensuite mon model :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
<?php
 
class Application_Model_DbTable_Prestationsvalider extends Zend_Db_Table_Abstract
{
    protected $_name = 'prestations';
    protected $_primary = array('id');
    protected $_sequence = 'prestations_pres_id_seq';
 
    protected $_referenceMap    = array(
        'Prestataire' => array(
            'columns'           => array('pre_id'),
            'refTableClass'     => 'Application_Model_DbTable_Prestataires',
            'refColumns'        => array('id'),
    				'onDelete'          => self::CASCADE,
					'onUpdate'          => self::RESTRICT),
        'Activite' => array(
            'columns'           => array('act_id'),
            'refTableClass'     => 'Application_Model_DbTable_Activites',
            'refColumns'        => array('id'),
    				'onDelete'          => self::CASCADE,
					'onUpdate'          => self::RESTRICT),
        'Ville' => array(
            'columns'           => array('ville_id'),
            'refTableClass'     => 'Application_Model_DbTable_Villes',
            'refColumns'        => array('id'),
    				'onDelete'          => self::CASCADE,
					'onUpdate'          => self::RESTRICT),
        'Offrestar' => array(
            'columns'           => array('offre_star_id'),
            'refTableClass'     => 'Application_Model_DbTable_OffresStars',
            'refColumns'        => array('id'),
    				'onDelete'          => self::CASCADE,
					'onUpdate'          => self::RESTRICT));
}
Ma table prestations et liée à d'autres tables (activite, ville...).

Puis ma view :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
<?php
$this->layout()->setLayout('administration/admin'); 
echo $this->title;
?>
 
<table>
    <tr>
        <th>id</th>
        <th>ville_id</th>
        <th>titre</th>
        <th>validaion</th>
        <th>&nbsp;</th>
    </tr>
<?php foreach($this->albums as $album) : ?>
    <tr>
        <td><?php echo $this->escape($album->id);?></td>
        <td><?php echo $this->escape($album->ville_id);?></td>
        <td><?php echo $this->escape($album->pres_titre);?></td>
        <td><?php echo $this->escape($album->pres_valide);?></td>
    </tr>
<?php endforeach; ?>
</table>

Mon problème est le suivant :
Avec le code ci-dessus j'affiche toutes les données de la table "prestations" et moi j'aimerais qu'il m'affiche toutes les données de la table "prestations" WHERE le champs pres_valide=FALSE...
Seulement n'étant pas un adepte de Zend je ne vois pas comment modifier mon code, alors votre aide est la bien venu =)

Merci de votre aide ^^