控制器
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Mbusinesstype extends MY_Model {
private $data = null;
public $table_name = null;
public $primary_key = null;
public $sql = null;
function __construct() {
parent::__construct();
$this->table_name = 'businesstype';
$this->primary_key = 'id';
$this->sql = "SELECT * FROM ".$this->table_name." WHERE 1=1 ";
}
function SetDetails() {
$this->data = array(
'name_en' => ucfirst(trim($this->input->post('name_en'))),
'name_np' => trim($this->input->post('name_np')),
'status' => $this->input->post('status')
);
}
我是codeigniter的新手,当我更改PHP版本时发生此错误;早期版本低于7,现在我使用PHP版本7.1.4。版本变更前,代码运行顺利,但现在出现这个错误:
严重性:8192
消息:函数 mcrypt_get_iv_size() 已弃用
文件名:libraries/Encryption.php
线路数:35回溯:
文件:E:\xampp\htdocs\dryice pplication\libraries\Encryption.php 线路:35
函数:_error_handler文件:E:\xampp\htdocs\dryice pplication\modules usinesstyp