Cakephp 2.x if, Else

Asked

Viewed 70 times

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.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.