Welcome Guest, Not a member yet? Register   Sign In
My CI Hacks Pt 1
#5

[eluser]vijinho[/eluser]
hi.

these are hacks really and perhaps not really optimal, but they did the job. i've been a bit pressed for time to present neat diffs against the latest sourcecode like i have done in the past working with f/oss projects.

using empty() has been a habit of mine for a long time as it's pretty consistent in its results - i basically just wanted to make sure that nothing important, as in empty values, false, empty quotes, 0 got processed and prevented any unexpected results.

the indexfield will overwrite the values but only if the index field is repeated and/or you're not using SELECT DISTINCT

i'm using a primary key for the indexfield where i specify it. if i dont specify any params the default behaviour is the same as for the standard codeigniter version - it returns everything, repeated or not

thanks for the feedback

vijay


Messages In This Thread
My CI Hacks Pt 1 - by El Forum - 12-06-2007, 09:28 AM
My CI Hacks Pt 1 - by El Forum - 12-06-2007, 09:29 AM
My CI Hacks Pt 1 - by El Forum - 12-06-2007, 11:19 AM
My CI Hacks Pt 1 - by El Forum - 12-06-2007, 03:27 PM
My CI Hacks Pt 1 - by El Forum - 12-06-2007, 04:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB