ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CI made me laugh

June 11, 2010 5:34am

Subscribe [16]
  • #16 / Dec 12, 2010 8:22am

    jonukas

    2 posts

    This joke is so nerdy ;D

  • #17 / Dec 13, 2010 7:31pm

    wh1tel1te

    68 posts

    OS Commerce has this kind of thing all over the place:

    function tep_db_num_rows($db_query) {
        return mysql_num_rows($db_query);
    }
    
    function tep_db_data_seek($db_query, $row_number) {
        return mysql_data_seek($db_query, $row_number);
    }
    
    function tep_db_free_result($db_query) {
        return mysql_free_result($db_query);
    }
    
    function tep_db_fetch_fields($db_query) {
        return mysql_fetch_field($db_query);
    }

    The question is: why do they write their own functions that just call native PHP functions and do nothing else special?

  • #18 / Dec 13, 2010 7:57pm

    WanWizard

    4475 posts

    So you could replace mysql_some_function() by foobar_some_function(), without having to go through all your code?

  • #19 / Jul 27, 2012 1:33pm

    grintWage

    1 posts

    LOL, what an idiot

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases