- Code: Select all
// initialize dataface framework
require_once '/path/to/dataface/dataface-public-api.php';
df_init(__FILE__, '/url/to/dataface');
$query = array();
$profiles =& df_get_records('Profiles', $query);
...
while ( $profiles->hasNext() ){
$profile =& $profiles->next();
I get the following error:
Fatal error: Call to a member function hasNext() on a non-object..
I've searched a bit with no luck finding anything to explain what is missing and causing this error. Much appreciate any suggestions. Thanks.
Michael