[SOLVED] Class 'Twilio\Rest\Client' not found

Status
Not open for further replies.

SoilentRed

Caaan do!
Trying to send SMS on a new form with the SMS plugin. Getting this error:

Class 'Twilio\Rest\Client' not found

I'm using eval to get a list of numbers. Here's the code there:
Code:
$myDb = JFactory::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery->select('phone')->from('afab_test_list');
$myDb->setQuery($myQuery);
return $myDb->loadResult();
 
This is for a separate site where I just installed regular fabrik and the SMS plugin separate.

So I just uploaded the git update. The error went away, but the evail is only sending to the first number in the list.
 
loadResult() is returning only one column from only one record. Use one of the other loadXs
http://fabrikar.com/forums/index.php?wiki/php-common-tasks/#select
Right on. This did the trick
Code:
$myDb = JFactory::getDbo();
$myQuery = $myDb->getQuery(true);
$myQuery
    ->select(array('phone'))
    ->from('afab_test_list');
$myDb->setQuery($myQuery);
$rows = $myDb->loadObjectList();
$list = array();
foreach ($rows as $row)
{
    $list[] = $row->phone;
}
return implode(",", $list);
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top