Store Community Support Documentation
So in my service i have code that gets list of friends

Quote:
class NewVideo_Service_NewVideo extends Phpfox_Service
{
public function getUsers($iTotal)
{
return $this->database()->select('u.full_name')
->from(Phpfox::getT('user'), 'u')
->limit($iTotal)
->execute('getRows');
}
}


In my controller i have
Quote:
$aUsers = Phpfox::getService('newvideo')->getUsers(10);
$this->template()->assign(array('aUsers' => $aUsers));


In my template i have

Quote:
{$aUsers}



I get this error
Notice: Array to string conversion - file\cache\template\newvideo_template_default_controller_index.html.php.php (3)
Be the first person to like this.
webwolf
#1
PHP:
{foreach from=$aUsers item=aUser}
{
$aUser.full_name}
{/foreach} 
Be the first person to like this.