
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
Haha nice find. Unfortunately not every babe is a model….although some “babes” think that statement is return false;
I believe that statement means
Every model is a babe :)
Which is true :P Isn’t it? ;)
Aah. Awesome. :) Am lovin’ it!!!
Perhaps, that’s y people load models in CodeIgniter ;)