到目前为止的5.0.7版本中,route里相关参数不会再压入$_GET与$_REQUEST变量中,比如 index.php/user/blog/id/123 里我们想用 $_GET['id']是取不到的,只能在专门的PARAM环境去取:

$this->request->param('id/d', 0);

用get、request都不行:

$this->request->get('id/d', 0);

$this->request-> request('id/d', 0);

这对于老版本的用户来说,可能是需要注意的一点。

PS:有人问为什么要继续用TP这种框架,而不是laravel、yii2这些更高大上的呢?答:框架不是关键,关键是人。

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2021-08-20
  • 2021-05-25
  • 2022-12-23
  • 2021-05-09
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案