コード例 #1
-2
ファイル: HomeController.php プロジェクト: gungunseptian/kurs
 function listByCurrencyCompareToday($currency1, $currency)
 {
     $data['dataKurs'] = KursModel::where('created_at', date('Y-m-d'))->join('currency', 'kurs.currency_code', '=', 'currency.currency_code')->where('currency_alias', str_slug($currencyName))->orderBy('rate_date', 'desc')->orderBy('kurs.currency_code', 'asc')->get();
     $this->theme->setTitle('Kurs Rupiah Hari Ini');
     $data['updatedDate'] = $data['dataKurs'][0]['created_at'];
     return $this->theme->scope('home', $data)->render();
 }