我如何用CakePHP显示一个月中的所有日子
我有一个表格,我想在我的表格标题字段中显示一个月的所有日期,如星期一、星期二、星期天,是否有人可以帮助我。 我使用的是CakePHPV2.0,如果可能的话,我想使用helpers我如何用CakePHP显示一个月中的所有日子,php,cakephp,Php,Cakephp,我有一个表格,我想在我的表格标题字段中显示一个月的所有日期,如星期一、星期二、星期天,是否有人可以帮助我。 我使用的是CakePHPV2.0,如果可能的话,我想使用helpers <table> <thead> <th><div class="nameday"></div></th> <th ><div class="Mistitle"><?php echo $this->Form->
<table>
<thead>
<th><div class="nameday"></div></th>
<th ><div class="Mistitle"><?php echo $this->Form->input('Missiontitle',array('label'=>false)); ?></div></th>
<?php
for($i=0;$i<$NumOfDays;$i++){
$thedate = $i+1 .'-'.$month.'-'.$year ;
if (in_array($i+1, $weekend)){ ?>
<th><div class="input-disabled">
<?php echo $this->Form->input('dat.Dates.',array('value'=> $i+1,'label'=>false ,'readonly'=>'readonly' ));?>
</div>
</th></thead>
<tbody>
</tbody>
</table>
在
提前感谢。请向我们展示您迄今为止所使用的所有代码。您能向我们展示您希望HTML的外观吗?此外,您还必须将THs包装在TR中!