Skip to content

Instantly share code, notes, and snippets.

@destinydriven
Created May 2, 2015 00:50
Show Gist options
  • Save destinydriven/13473fbde39709288b85 to your computer and use it in GitHub Desktop.
Save destinydriven/13473fbde39709288b85 to your computer and use it in GitHub Desktop.
<?php
foreach($dtResults as $result) {
//$this->log($result, LOG_DEBUG);
$this->dtResponse['aaData'][] = array(
$result['Employee']['id'],
$result['Employee']['last_name'],
$result['Employee']['first_name'],
$result['Employee']['nic_number'],
$result['Employee']['tax_number'],
$result['Employee']['tax_code'],
$result['Employee']['active'],
$result['EmploymentData']['Department']['name'],
$this->Html->link(__('Edit'), array(
'controller' => 'employees',
'action' => 'edit',
$result['Employee']['id']
),
array('class' => 'fa fa-pencil fa-fw', 'title' => __('Edit'))),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment