$this调用请求不到

renqiang

截图

292 1 0
1个回答

renqiang

用的是webman

  • chenh 2023-08-10

    打印$this->getParameterAtuh 有返回值吗?

  • tanhongbin 2023-08-10

    很明显写法有问题,上面的方法 没有返回,你就以为没走实际是走了,webman 不是fpm 模式那些框架 有die exit,可以写法不规范 随便的 返回啥的,你得标准 写

  • renqiang 2023-08-10

    明白了 谢谢 是我太随便啦哈哈哈哈

  • chenh 2023-08-10

    tp lv 也得 return 或者 var_dump $this->getParameterAtuh 吧

  • tanhongbin 2023-08-10

    tp lv 你可以封装 的 但是webman 不行 必须在控制中 return webman 实现数据层返回 只能用异常处理方式解决

🔝