implementing search module in layout in yii2

i want implement user search constrained to one table in the layout but i am unable to get and post the data from layout

can anyone help me to solve it thanks in advance

Did you add a form to your layout? Post your code, please.