template cpt assign array cakephp code example
Example: element cakephp
// admin_index.ctp
<td class="text-center">
<?= $this->element('view_check_ico',array('_check'=>$memberBookFacility['MemberBookFacility']['enabled'])) ?>
</td>
// View/Themed/CakeAdminLTE/Elements/view_check_ico.ctp
<?php
$_check = $_check>0 ? 'fa-check' : ' fa-times';
?>
<i style="font-size: 20px;" class="fa <?php echo $_check; ?>"></i>