My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

CodeIgniter Framework : Did the EllisLab Dev Team forget to remove $babe variable from Loader Class?

Williams Isaac's photo
Williams Isaac
·Sep 15, 2016

Digging into CodeIgniter PHP Framework this afternoon, I saw a very funny thing.. FUN to me though I asked myself if the EllisLab Dev Team really forgot to remove the variable or it was from the guy that wrote that aspect of the code.

Open path/to/file/CodeIgniter/system/core/Loader.php

Code starting from line 232

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

            if ($model == '')
            {
                return;
            }

            $path = '';

........

You can see where he had $model as $babe ..... Do you think he forgot to change this or was it intentional and he decided to make developers laugh ???