1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<?php
class EnchereCocoController extends Zend_Controller_Action
{
function indexAction()
{
$this->view->title = "Encheres Coco";
$enchere = new Model_DbTable_Encheres();
$sql = $enchere->select()
->where('validation=?',2)
->order('id DESC');
$this->view->encheres = $enchere->fetchAll($sql);
// Comment faire pour aller chercher le pseudo de mon gagnant
$gagnant = new Model_DbTable_Gagnants();
$sql = $gagnant->select()
->where('id=?',2);
$this->view->gagnants = $gagnant->fetchRow($sql);
}
} |