Answers for "element check cakphp"

PHP
-1

element check cakphp

// 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>&nbsp;
Posted by: Guest on October-02-2020

Browse Popular Code Answers by Language