私は問題があります。
これは私のモデルでの私の要求です:
public function nbDomainesParUrl($clientId)
{
$q = Doctrine_Query::create()
->from('domaine d')
->select('count(*)')
->where('d.client_id = ?', $clientId)
->leftJoin('d.Client c')
->leftJoin('d.CompteRegistar')
->groupBy('d.url')
;
return $q;
}
public function executeGetDomainesParUrl($clientId)
{
return $this->getDomainesParUrl($clientId)->execute();
}
次のように action.class.php でこれを実行します。
$this->nb_domaines = Doctrine::getTable('Domaine')->executeGetDomainesParUrl($request->getParameter('id'));
このリクエストの結果は次のようになります: 19,1,1
しかし、この結果をテンプレートで復元する方法がわかりません。