Welcome Guest, Not a member yet? Register   Sign In
A little help needed with creating a library
#4

[eluser]darkhouse[/eluser]
I don't see anything wrong off hand with your code. My config files load automatically. Here's some sample working code from my External library.

Code:
class CI_External {
    
    var $CI;

    function CI_External($groups = array()){    
        $this->CI =& get_instance();
        
        if(is_array($groups) && count($groups) > 0){
            //parse groups
        }
    }
    
    //...etc
}

And here's my config file...

Code:
$config = array(
    'all' => array(
        'css' => array(
            'css/reset.css',
            'css/shortcuts.css',
            array('.png_bg {behavior: url(iepngfix.htc)}', 'ie6_custom')
        ),
        'js' => array(
            'js/functions.js',
            array('var base_url = "'.base_url().'";', 'custom'),
            array('js/ie_png_fix.js', 'ie6')    
        )
    ),
    'default' => array('css' => 'css/master.css'),
    'admin' => array('css' => 'css/admin/master.css'),
    'beta' => array('css' => array('css/beta.css', 'css/960.css'))
);


Messages In This Thread
A little help needed with creating a library - by El Forum - 03-04-2009, 11:53 AM
A little help needed with creating a library - by El Forum - 03-04-2009, 12:02 PM
A little help needed with creating a library - by El Forum - 03-04-2009, 05:58 PM
A little help needed with creating a library - by El Forum - 03-04-2009, 08:21 PM
A little help needed with creating a library - by El Forum - 03-05-2009, 01:32 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 02:04 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 02:40 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 02:44 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 03:59 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 04:04 AM
A little help needed with creating a library - by El Forum - 03-05-2009, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB