我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

加载codeigniter输入库

$this->load->library("input"); 

what is the point of loading above code? found it in someone's code. This is the function :

public function do_add(){
    $this->load->library("input");
    $title = $this->input->post("title");
    $text = $this->input->post("text");

    $this->load->model("post_model", "model");
    $this->model->add($title, $text);

    redirect(site_url("post"));
}

From Codeigniter user guide:

Note: This class is initialized automatically by the system so there is no need to do it manually.

近期文章

  • Magento:阻止覆盖阻止phtml显示
  • database.php中的Kohana preg_replace错误
  • PHP - 遇到的偏移错误[重复]
  • 只需使用foreach显示一次登录
  • Yii - 手动设置模型的表名
  • style.css不影响新的页面模板
  • 如何通过单击标记来更改PHP变量
  • 在php中比较2个csv文件和1列
  • 无法获得警报弹出工作[关闭]
  • 如何检查文件是否可读 - 产生莫名其妙的错误?
  • 在cURL过程完成后返回变量
  • 如何检查数组是否只包含PHP中的其他数组?
  • 解析50GB xml文件,导致内存不足致命错误
  • 如何呈现PHP输出以初始化JavaScript中的变量?
  • 使用PHP“Include”将多个页面链接到单个index.php页面
  • MySQL加入以在WHERE语句中包含不匹配的记录
  • 我可以将所有php全局变量拉入函数的本地范围吗?
  • Yii - 如何以相同的形式保存两个模型?
  • WordPress获取YouTube图像缩略图
  • 在Laravel中创建包含大量参数的视图

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华