0
It’s the following guys. I have a for and inside it I have an array ($smses) that receives ($smses = $smses + 'my application’s data'). The problem is that this does not work, I would like to know how I add the new data from the new Intel.
if ($campanha['Smse']['entity'] == 0) {
for ($i=0; $i < $tamanho; $i++) {
$smses = $smses + $this->Phone->find('list', array(
'fields' => array('Phone.phone'),
'conditions' => array(
$conditions,
'Phone.type' => 2,
'Phone.phone !=' => '',
),
'joins' => array(
array(
'table' => 'contacts',
'alias' => 'Contact',
'type' => 'LEFT',
'conditions' => array('Phone.contact_id = Contact.id')
),
array(
'table' => 'prospects',
'alias' => 'Prospect',
'type' => 'LEFT',
'conditions' => array('Prospect.contact_id = Contact.id')
),
),
));
}
}
Thank you! Funfou aq.
– Devidy Oliviera