lang->line('currency') ?>
lang->line('currency') ; ?> | lang->line('rate') ; ?> (%) |
---|---|
".$row->code.' - '.$name." | ".round($provider->getExchangeRate($currency_code ,$row->code)->toFloat(),3)." | ".'
db->hostname.';dbname='.$this->db->database, $this->db->username, $this->db->password); $configuration = new PDOProviderConfiguration(); $configuration->tableName = 'exchange_rate'; $configuration->exchangeRateColumnName = 'exchange_rate'; $configuration->targetCurrencyColumnName = 'target_currency'; $configuration->sourceCurrencyCode = $baseCurrency; // this provider loads exchange rates from your database $provider = new PDOProvider($pdo, $configuration); // this provider calculates exchange rates relative to the base currency $provider = new BaseCurrencyProvider($provider, $baseCurrency); // this currency converter can now handle any currency pair $converter = new CurrencyConverter($provider); //$money = Money::of('1', 'USD'); //$mone2 = $converter->convert($money, 'XAF', RoundingMode::DOWN); ?>
lang->line('currency') ?>
lang->line('currency') ; ?> | lang->line('rate') ; ?> (%) |
---|---|
".$row->code.' - '.$name." | ".round($provider->getExchangeRate($currency_code ,$row->code)->toFloat(),3)." | ".'