3 ms·
Kohana uses things like, $foo = Model::factory('Bar'); which does nothing more than static function factory($model_name) { return new $model_name . '_Mode
by jtreminio 14y ago
Kohana uses things like, $foo = Model::factory('Bar');
which does nothing more than
static function factory($model_name)
{
return new $model_name . '_Model';
}
- ttsaia 14y agoExactly, because of how its autoloader/class finder works.