I was just curiously checking out some of the core code in github and stumbled upon this.. I'm just wondering the reasoning behind it.
It is a if block in Controller::loadModel() https://github.com/cakephp/cakephp/blob/1.3/cake/libs/controller/controller.php#L630 if (!PHP5) { $this->{$modelClass} =& ClassRegistry::init(array( 'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id )); } else { $this->{$modelClass} = ClassRegistry::init(array( 'class' => $plugin . $modelClass, 'alias' => $modelClass, 'id' => $id )); } I see that model class is linked by reference in php5 but why not in others? Is that something about the quirks of php lower than 5 that I don't know? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php