status取不到值

来源:6-5 账户列表

Demon1989

2019-09-08

$status = intval($this->get("status",ConstantMapService::$status_default));
	$mix_kw = trim($this->get("mix_kw",""));
	var_dump($status );

	$query = Employee::find();

	if ($status > ConstantMapService::$status_default) {
		$query->andWhere(['status' => $status]);
	}
	$list = $query->orderBy(['id' => SORT_DESC])->asArray()->all();
	// var_dump($list);
	return $this->render('list',[
		'list'           => $list,
		'status_mapping' => ConstantMapService::$status_mapping
	]);

其他的都能正常取到值,就是status取不到值,值是传递了,就是get()方法取不到。。。什么原因啊!
图片描述
图片描述

取到的是默认值!!

写回答

2回答

编程浪子

2019-09-09

你好

我建议你把整个网址都截图出来,目前给出来的信息不够,初步觉得 是url链接有不对造成的

0
1
Demon1989
非常感谢!已解决,是我nginx配置的问题,已经重新配置
2019-09-09
共1条回复

Demon1989

提问者

2019-09-08


//img.mukewang.com/szimg/5d750b32094adce606470053.jpg

var_dump( $_GET );打印出来的键值是网址,这什么解决啊?

0
0

微信服务号+Yii2.0构建商城系统全栈应用

传统PC后端与火热微信结合,打造一个摩登的商业电商系统

757 学习 · 744 问题

查看课程