用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2758|回复: 3
收起左侧

[Others] 请问那些ci的开源类库都是怎么找到的

[复制链接]
发表于 2017-9-8 18:33:05 | 显示全部楼层 |阅读模式
本帖最后由 GameTo 于 2017-9-8 18:34 编辑

我们公司的php项目都是使用的ci框架,我一直有一个疑惑,就是哪些非ci自带的库都是从哪里找到的,比如这个ci类库,我找了好久都没找到在哪里可以下载
PHP复制代码
 
<?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');
        }
 
复制代码






发表于 2017-9-9 16:23:26 | 显示全部楼层
Github啊。

https://github.com/search?utf8=%E2%9C%93&q=codeigniter&type=

访问不了的话,改 hosts。
https://laod.cn/hosts/2017-google-hosts.html
发表于 2017-9-9 16:28:52 | 显示全部楼层
你的这个类库,看看是不是这个:

https://gist.github.com/devyfriend/5863579
发表于 2017-11-13 09:35:13 | 显示全部楼层
github 不一定是要ci的,很多php的类库基本改改就可以用

本版积分规则