[eluser]sherbo[/eluser]
I'm implementing a few classes in the CodeIgniter "libraries" folder as singletons in the following manner:
Code:
public static function getInstance() {.....}
private function __construct() {}
CodeIgniter's
load->library(), however, always expects a public constructor.
Is it possible to implement and load CI library classes as singletons?
Also, what was the logic behind forcing lower case names of variables returned by
load->library()?
In general, the CodeIgniter's library loading functionality leaves much to be desired.