```php
foreach ($devices as $device) {
  $this->renderPartial('/device/_view',array('data' => $device));
  echo '</br>';
};
```