I use this:
$array_prezzi = $this->Cost->generateList('Cost.contract_id =
"'.$contract_id.'"', 'id ASC');
if (is_array($array_prezzi)) {
$this->set('prezzi', array('' => 'TUTTI') +
$array_prezzi);
} else {
$this->set('prezzi', array('' => 'TUTTI'));
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---