![]() |
Updated ADODB Loader For CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Updated ADODB Loader For CI (/showthread.php?tid=8540) |
Updated ADODB Loader For CI - El Forum - 05-21-2008 [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 ] Updated ADODB Loader For CI - El Forum - 05-21-2008 [eluser]sikkle[/eluser] Are you skilled enough to give to community a good resume about pros and cons of ADODB ? thanks ! Updated ADODB Loader For CI - El Forum - 07-25-2008 [eluser]tmsajin[/eluser] can you try to extend ci model with active record? Updated ADODB Loader For CI - El Forum - 08-20-2008 [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; Updated ADODB Loader For CI - El Forum - 09-10-2008 [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? |