Updated ADODB Loader For CI |
[eluser]Obasi George[/eluser]
Good Day, Found a ADODB Loader for CI on the web: http://www.ciforge.com/projects/adodb I have updated it to work with 1.6.2, and it works just like it was adodb on its' own. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); copy the adodb library to your applications\library\ folder. load: $this->load->library('init_adodb'); usage: $this->db->[ ADODB FUNCTION ]
[eluser]sikkle[/eluser]
Are you skilled enough to give to community a good resume about pros and cons of ADODB ? thanks !
[eluser]Unknown[/eluser]
I was having some problems with this till I read with calm the code and found the problem. In PHP5 objects are passed by reference so I changed a couple of lines: From this: Code: $this->obj->adodb =& ADONewConnection($dsn); To this: Code: $this->obj->adodb = ADONewConnection($dsn); And from this: Code: $this->obj->db =& $this->obj->adodb; To this: Code: $this->obj->db = $this->obj->adodb;
[eluser]dcunited08[/eluser]
[quote author="sikkle" date="1211442345"]Are you skilled enough to give to community a good resume about pros and cons of ADODB ? thanks ![/quote] I have used it on another, non-CI project and found it to work quite well. It is fully extendable and customizable, covers many different kinds of databases and is pretty fast. I guess the biggest con would be another custom library to keep up to date. What exactly are you wanting to know? |
Welcome Guest, Not a member yet? Register Sign In |