Cakephp 2.x if, else

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, that is, != does not work.

    
asked by anonymous 02.01.2017 / 17:49

0 answers