From 7b1d9d49626f30a484d588856e7c3b2bb07cd3e1 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 23 Dec 2014 22:27:14 +0100 Subject: [PATCH] First basic controller for #37 --- app/controllers/CurrencyController.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/controllers/CurrencyController.php 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 @@ +_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