keep inputs values after seach cakePHP

时间:2015-09-14 15:53:04

标签: cakephp

i have a page with a search function and i want to keep the values selected this way if i want to make another search i dont have to refill all the inputs.

Those are my inputs that i want to keep the value:

<?= $this->Form->input('search', ['placeholder' => 'Search', 'label' => false]); ?>

<input type="radio" name="multimedia_type_id" id="radio1" value="1">

<input type="radio" name="multimedia_type_id" id="radio2" value="2">

<input type="radio" name="multimedia_type_id" id="radio3" value="3">

<?= $this->Form->input('category_id', ['class' => 'electdown',
                                                               'label' => false,
                                                               'empty' => 'Categories',
                                                               'default' => 'Categories',
                                                               'options' => $categories
                                                              ]); ?>

how can i keep the values?

0 个答案:

没有答案