Each model is a babe – Codeigniter :-)

Happened to see the following code in Codeigniter 2 :)

    function model($model, $name = '', $db_conn = FALSE)
    {
        if (is_array($model))
        {
            foreach($model as $babe)
            {
                $this->model($babe);
            }
            return;
        }

Source code Link : https://bitbucket.org/ellislab/codeigniter/src/8f6367e5d338/system/core/Loader.php

4 thoughts on “Each model is a babe – Codeigniter :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>