<?php
use yiiwidgetsLinkPager;
//使用分页
use yiiwidgetsActiveForm;
use yiihelpersUrl;
use yiihelpersHtml;
?>
<?php
//from表单提交
$from = ActiveForm::begin([ 'action'=>Url::toRoute(['list/index']), 'method'=>'get', ]);
//生成input标签
echo '姓名:',Html::input('text','serch');
echo '年龄区间:',Html::input('text','age1');
echo '-',Html::input('text','age2');
echo Html::submitButton('搜索');
//结束表单
ActiveForm::end();?>