Welcome Guest, Not a member yet? Register   Sign In
creating my own library
#3

[eluser]Clooner[/eluser]
What are you trying to accomplish here? Is the mongo_db already loaded using the autoload functionality? Loading a library works different than a class try it like so
Code:
$this->load->library('mongo_db', 'mongolib')
this will make the library availabre under $CI->mongolib

Then you would be able to make it available under $this->mongo as such
Code:
$this->mongo =& $CI->mongolib


Please see the userguide about this topic
http://ellislab.com/codeigniter/user-gui...aries.html


Messages In This Thread
creating my own library - by El Forum - 08-13-2012, 11:56 PM
creating my own library - by El Forum - 08-14-2012, 12:52 AM
creating my own library - by El Forum - 08-14-2012, 08:53 AM
creating my own library - by El Forum - 08-15-2012, 10:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB