Format Helper

Specific Icons

<?php echo $this->Format->yesNo($boolValue); ?>


<?php echo $this->Format->thumbs($boolValue); ?>

Font Icons

<?php echo $this->Format->fontIcon('motorcycle'); ?>
<?php echo $this->Format->fontIcon('anchor', ['spin' => true]); ?>

Other

<?php echo $this->Format->ok('I am OK', 1); ?>
<?php echo $this->Format->ok('Me not so much', 0); ?>
I am OK
Me not so much

Array to Table

$array = [
['x' => '0', 'y' => '0.5', 'z' => '0.9'],
['1', '2', '3'],
['4', '5', '6']
];
echo $this->Format->array2table($array);
xyz
00.50.9
123
456

Send your feedback or bugreport!