【问题标题】:CodeIgniter: post variable not being readCodeIgniter:未读取发布变量
【发布时间】:2009-11-08 05:00:07
【问题描述】:

我有一个控制器 user 和一个方法 login

由于某种原因,当我打电话时:

$this->post

我收到一个错误Undefined property: User::$post

虽然,这很好用:

print_r($_POST);

【问题讨论】:

    标签: php codeigniter post


    【解决方案1】:

    你应该使用:

    $this->input->post('your_post_variable');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-25
      • 1970-01-01
      • 2012-05-21
      • 2023-03-04
      • 2020-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多