/** * Constructor * * Initialize things. * */ function __construct() { if (null == self::$_appInstance) { self::$_appInstance = Slim::getInstance(); } if (null == self::$_dbInstance) { self::$_dbInstance = PDOAdpter::getInstance(); } }