我正在尝试构建一个自定义库,其中包含可通过整个站点获得的功能.在里面/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)