请问那些ci的开源类库都是怎么找到的
本帖最后由 GameTo 于 2017-9-8 18:34 编辑我们公司的php项目都是使用的ci框架,我一直有一个疑惑,就是哪些非ci自带的库都是从哪里找到的,比如这个ci类库,我找了好久都没找到在哪里可以下载
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter Template Class
*
* Build your CodeIgniter pages much easier with partials, breadcrumbs, layouts and themes
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author Philip Sturgeon
* @license http://philsturgeon.co.uk/code/dbad-license
* @link http://getsparks.org/packages/template/show
*/
class Template
{
private $_module = '';
private $_controller = '';
private $_method = '';
private $_theme = NULL;
private $_theme_path = NULL;
private $_layout = FALSE; // By default, dont wrap the view with anything
private $_layout_subdir = ''; // Layouts and partials will exist in views/layouts
// but can be set to views/foo/layouts with a subdirectory
private $_title = '';
private $_metadata = array();
private $_style = array();
private $_script = array();
private $_partials = array();
private $_breadcrumbs = array();
private $_title_separator = ' | ';
private $_parser_enabled = TRUE;
private $_parser_body_enabled = TRUE;
private $_theme_locations = array();
private $_is_mobile = FALSE;
// Minutes that cache will be alive for
private $cache_lifetime = 0;
private $_ci;
private $_data = array();
/**
* Constructor - Sets Preferences
*
* The constructor can be passed an array of config values
*/
function __construct($config = array())
{
$this->_ci =& get_instance();
if ( ! empty($config))
{
$this->initialize($config);
}
log_message('info', 'Template Class Initialized');
}
Github啊。
https://github.com/search?utf8=%E2%9C%93&q=codeigniter&type=
访问不了的话,改 hosts。
https://laod.cn/hosts/2017-google-hosts.html 你的这个类库,看看是不是这个:
https://gist.github.com/devyfriend/5863579 github 不一定是要ci的,很多php的类库基本改改就可以用
页:
[1]