public function getDI() { $di = SF_BaseDI::getCurrentDI(); if (!$di) { throw new Exception('a di object must be instantialize before use it'); } return $di; }
protected function _getDb() { return SF_BaseDI::getCurrentDI()->get('db'); }
public function getDI() { $di = SF_BaseDI::getCurrentDI(); if (!$di) { throw new Exception('a di object must be instantialize before use it'); } return $di; }
protected function _getDb() { return SF_BaseDI::getCurrentDI()->get('db'); }