小编Lui*_*ela的帖子

CodeIgniter自定义库错误:调用非对象上的成员函数

我正在尝试构建一个自定义库,其中包含可通过整个站点获得的功能.在里面/application/libraries我做了一个新文件CustomFuncts:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * @brief CommonFuncts      
 * This class is used to provide common user functions to the whole application.
 *
 * @version 1.0
 * @date May 2012
 *
 * 
 */
class CommonFuncts extends CI_Controller {

 protected $ci;

/**
 * function constructor
 */
function __construct()
{
    $this->ci =& get_instance();
}
 /**
* @brief checkCookie
* 
* Checks for a previous cookie, and if exists:
* @li Loads …
Run Code Online (Sandbox Code Playgroud)

php codeigniter

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

codeigniter ×1

php ×1