0
I have a project in Cakephp 2.x, with the following code:
<?php
echo $this->Form->create('Planos', array('url' => 'addPlanos'));
foreach($ListarPlanos as $indice => $AdicionarPlanos):
foreach($totalPlanosAlunos as $contador => $planos):
if($AdicionarPlanos['Planos']['status'] == 0) :
if($AdicionarPlanos['Planos']['id'] !== $planos['id']):
echo $AdicionarPlanos['Planos']['id'] ;
endif ;
endif ;
endforeach ;
endforeach ;
It does not add the plan that the student does not have, ie the !=
doesn’t work.
And your doubt is?
– ShutUpMagda
Does not add in the database or generate the form?
– Guilherme Nascimento