namespace app\index\controller; use think\Db; class Search extends Common { public function index(){ $input = input(); $this->assign([ 'keyword' => htmlspecialchars($input['key']) ]); return $this->fetch(); } } ?>
namespace app\index\controller;
use think\Db;
class Search extends Common
{
public function index(){
$input = input();
$this->assign([
'keyword' => htmlspecialchars($input['key'])
]);
return $this->fetch();
}
?>