public static function config() { if (!empty(self::$config)) { return self::$config; } self::$config = Config::load('log'); return self::$config; }
public static function send($module, $handler, $data = array()) { if (empty(static::$config)) { static::$config = Config::load('mail'); } Place::init(); static::clear(); $path = Module::path($module); if (empty($path)) { return; } $path .= '/emails/' . $handler; static::run($path, $data); return static::mail(); }