bonjour toyt le monde s'il vous plait j'ai fait de code dans ctisationtable.class.php
public function getTotals(l)
{
return $this->createQuery('c')-> SELECT('SUM(c.montant) FROM c')->execute();
}
et dans un autre module bilan j'ai fait
public function executeIndex(sfWebRequest $request)
{
$this->test = Doctrine_core::getTable('Cotisation')->getTotals(); }
in template i call value test as:
<?php foreach($test as $value): ?>
<?php echo $value ?>
<?php endforeach; ?>
mais n'affiche rien
je serai vraiment reconnaissante
merci infiniment
Partager