Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Inflexibility of DB class

#2

Current DB (driver) class(es) for codeigniter are weak in flexibility. Should be able to add custom methods and extensions.

Reported by S. Shehzed · November 14th, 2010 @ 05:07 PM

State: resolved
Milestone: v0.20
Assigned to: S. Shehzed S. Shehzed

Activity

  1. S. Shehzed
    S. Shehzed

    Solution: Create a MY_DB class.
    Will follow instruction at http://codeigniter.com/wiki/Extending_Database_Drivers.
    A correction for the wiki instructions is at http://codeigniter.com/forums/viewthread/158955/#805154.

    Load databases through custom !pload method.

    November 14th, 2010 @ 05:14 PM

  2. S. Shehzed
    S. Shehzed
    • State changed from resolved to new

    November 15th, 2010 @ 02:37 PM

  3. S. Shehzed
    S. Shehzed
    • State changed from new to shortterm
    • Milestone set to v0.20
    • Milestone order changed from 1 to 0

    November 23rd, 2010 @ 06:48 PM

  4. S. Shehzed
    S. Shehzed
    • State changed from shortterm to resolved

    The fix in the wiki didn't work. Active record wasn't able to be called.

    Currently the main DB driver is extended, but active recording is not, so all active recording needs to be done in one go in any extended methods.

    Not perfect solution as active recording should be extended, but for now current solution is good enough.

    December 12th, 2010 @ 01:51 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.