In my% s of CakePHP a Controller
was made by passing all the data of a form to a variable.
Now, how do I make a specific% wc, what would your goal be if the foreach
is passing is empty, move on to the next?
foreach ($this->request->data['CursoNavigation'] as $indice => $valor) {
if (empty($valor)) continue;
// código para continuar e salvar as informações no 'CursoNavigation'
}