$dp_id = $this->getParam('dpId');
if(!empty($this->getParam('dpId'))) { 
$this->smarty->assign('developer', get_developers($this->getParam('dpId')));
}

以上PHP会报错: Can't use method return value in write context

解决办法为分开写

$dp_id = $this->getParam('dpId');
if(!empty($dp_id)) {
	$this->smarty->assign('developer', get_developers($this->getParam('dpId')));
}


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-12-04
  • 2021-08-17
  • 2022-12-23
  • 2021-05-06
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案