Using CakePHP in my project, I created a dropdown to use to search the database for values and strings .
I need to create an "all" option to search all the results and to be the "default" option of this dropdown . How can I do this?
Code:
<?php echo $this->Form->create('RegistroHorario', array('class' => 'form-horizontal bucket-form', 'autocomplete' => 'off')); ?>
<div class="col-lg-3">
<?php echo $this->Form->select('RegistroHorario.cliente_id', $clientes, array('empty' => false ,'div' => false,'label'=>false, 'class' => 'form-control m-bot15', 'width' => '10'));?>
</div><div class="col-lg-3">
<?php echo $this->Form->select('RegistroHorario.user_id', $usuarios, array('empty' => false ,'div' => false,'label'=>false, 'class' => 'form-control m-bot15', 'width' => '10'));?>
</div>
<input type="submit" class="btn btn-success" value="Buscar" />
<?php echo $this->Form->end(); ?>