First basic controller for #37

This commit is contained in:
James Cole 2014-12-23 22:27:14 +01:00
parent da6ff9f90a
commit 7b1d9d4962

View 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'));
}
}