在 CI 的 Controller 中,您可以通过执行以下操作来获取所有后变量:
$data = $this->input->post();
在 EE(由同一个人基于 CI 构建)中,类似的语法是:
$data = $this->EE->input->post();
唯一的问题是,您得到的不是包含所有数据的数组,而是 bool 值 false。
是否有某种方法可以使用 ExpressionEngine 而不是 POST 超全局来获取所有发布数据的数组?
谢谢。
最佳答案
尝试原生
$this->input->post(NULL, TRUE); // returns all POST items with XSS filter
$this->input->post(); // returns all POST items without XSS filter
引用:https://www.codeigniter.com/user_guide/libraries/input.html
关于php - 是否可以像在 CodeIgniter 中那样在 ExpressionEngine 中获取所有后置变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11128198/