Skip to content

Firefly III: a personal finances manager

First basic controller for #37

James Cole7b1d9d49626f
diff --git a/app/controllers/CurrencyController.php b/app/controllers/CurrencyController.php
new file mode 100644
index 0000000000..db7bf651fb
--- /dev/null
+++ b/app/controllers/CurrencyController.php
@@ -0,0 +1,26 @@
+<?php
+use FireflyIII\Database\TransactionCurrency\TransactionCurrency as Repository;
+/**
+ * Class CurrencyController
+ */
+class CurrencyController extends BaseController
+{
+
+ /** @var Repository */
+ protected $_repository;
+
+ public function __construct(Repository $repository)
+ {
+ $this->_repository = $repository;
+ View::share('title', 'Currencies');
+ View::share('mainTitleIcon', 'fa-usd');
+ }
+
+ public function index()
+ {
+ $currencies = $this->_repository->get();
+
+ return View::make('currency.index',compact('currencies'));
+ }
+
+}
\ No newline at end of file