mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
First basic controller for #37
This commit is contained in:
parent
da6ff9f90a
commit
7b1d9d4962
26
app/controllers/CurrencyController.php
Normal file
26
app/controllers/CurrencyController.php
Normal file
@ -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'));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user