This code works...
$season_view_builder = new Hockey_season_view_builder($season_id);
However, if I use the following code I get the white screen of death.
$builder = 'Hockey_season_view_builder';
$season_view_builder = new $builder($season_id);
Can CodeIgniter create new class instances from a variable name? Is there some kind of weird codeigniter syntax to this?
I really need to generate and return new classes dynamically to make my factory pattern work.
Thanks for any help! I'll keep trying different approaches and post if I find anything.