check two fields in cakephp query exist code example
Example: combox with auto filter, auto search cakephp
use: selectpicker (bootstrap) + data-live-search: true
<?php
echo $this->Form->input('config_reset_free_credit_month', array(
'class' => 'form-control selectpicker',
'data-live-search' => true,
'required' => 'required',
'id' => 'config_reset_free_credit_month',
'label' => "<font class='red'> * </font>" . __d('company', 'config_reset_free_credit_month'),
'empty' => __("Please select")
));
?>