Welcome Guest, Not a member yet? Register   Sign In
Ability to specify index for query build from
#6

(05-29-2016, 12:02 AM)Diederik Wrote: You should not alter any core files (as you mention you will get in trouble with the next update of CI), instead you should extend the class.

https://github.com/bcit-ci/CodeIgniter/w...se-drivers

Didn't get that one going, a couple of errors(? - who am I to judge?!?) in the instructions noted
I am on 3.0.6 and I needed to put MY_Loader into application/core (and not in application/Library).
The command
$this->_ci_assign_to_models();

Doesn't work and I can't find any such command at all in CI.

Anyhow, it is DB_query_builder.php I need to override with my special "from_index()" function and that one is loaded from deep inside DB.php without any option to load my own version.

For the moment, I'll stick with patching DB_query_builder.php directly and hope that unit-testing will catch the problem after upgrading CI.
Reply


Messages In This Thread
RE: Ability to specify index for query build from - by tgix - 05-29-2016, 06:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB