cerebrate/templates/element/genericElements/IndexTable/Fields/sparkline.php

5 lines
214 B
PHP

<?php
$elementId = $this->Hash->extract($row, $field['data_path'])[0];
echo $this->element('sparkline', array('scope' => $field['csv']['scope'], 'id' => $elementId, 'csv' => $field['csv']['data'][$k]));
?>