centralway/xBoilerplate — pull request #9 by otupman (2012-05-31 11:17:18+00:00)
Title: First cut of Issue-8: convert xBoilerplate to a singleton

Nicolas- this is my first cut of converting xBoilerplate to a singleton.

I've modified it only slightly, but am concerned about one thing: the constructor of xBoilerplate took a few parameters from index.php, so where to put this? I created a method on xBoilerplate - startPage() - that is a mirror of the old constructor, but also checks to make sure it hasn't been called twice.

Tests modified to take into account the new singleton nature of the class; all pass on my local copy.