Ability to specify index for query build from |
(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. 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. |
Messages In This Thread |
Ability to specify index for query build from - by tgix - 05-28-2016, 01:37 AM
RE: Ability to specify index for query build from - by InsiteFX - 05-28-2016, 02:53 AM
RE: Ability to specify index for query build from - by tgix - 05-28-2016, 02:58 AM
RE: Ability to specify index for query build from - by Diederik - 05-29-2016, 12:02 AM
RE: Ability to specify index for query build from - by tgix - 05-29-2016, 02:37 AM
RE: Ability to specify index for query build from - by tgix - 05-29-2016, 06:56 AM
RE: Ability to specify index for query build from - by mwhitney - 06-02-2016, 08:38 AM
RE: Ability to specify index for query build from - by tgix - 06-02-2016, 12:00 PM
|